Skip to content

Interface IBytesCore ​

Namespace: Tool.Sockets.Kernels
Assembly: Tool.Net.dll

内存管理对象

csharp
public interface IBytesCore : IDisposable, IAsyncDisposable

Implements ​

IDisposable, IAsyncDisposable

Extension Methods ​

ObjectExtension.Add<T>(object, object, object), ObjectExtension.CopyEntity(object, object, params string[]), ObjectExtension.EntityToJson(object), ObjectExtension.EntityToJson(object, bool), ObjectExtension.EntityToJson(object, bool, string), DictionaryExtension.GetDictionary(object), TypeExtension.GetFieldKey(object, string, out bool), TypeExtension.GetFieldKey<T>(object, string, out bool), TypeExtension.GetFieldKey(object, Type, string, out bool), ObjectExtension.GetIntPtr(object), ObjectExtension.GetIntPtrInt(object), TypeExtension.GetPropertieFind(object, string, bool), TypeExtension.GetProperties(object), TypeExtension.GetPropertyKey(object, string, out bool), TypeExtension.GetPropertyKey<T>(object, string, out bool), TypeExtension.GetPropertyKey(object, Type, string, out bool), TypeExtension.GetValue(object, PropertyDescriptor), TypeExtension.GetValue(object, string, bool), TypeExtension.GetValue(object, string), ObjectExtension.Read<T>(object, object, int, int), ObjectExtension.Read<T>(object, int, object, int, int), DictionaryExtension.SetDictionary(object, IDictionary<string, object>), TypeExtension.SetFieldKey(object, string, object), TypeExtension.SetFieldKey<T>(object, string, object), TypeExtension.SetFieldKey(object, Type, string, object), TypeExtension.SetPropertyKey(object, string, object), TypeExtension.SetPropertyKey<T>(object, string, object), TypeExtension.SetPropertyKey(object, Type, string, object), TypeExtension.SetValue(object, PropertyDescriptor, object), TypeExtension.SetValue(object, string, object, bool), TypeExtension.SetValue(object, string, object), ObjectExtension.ToBase64String(object), ObjectExtension.ToBytes(object), ObjectExtension.ToBytes(object, out Type), DictionaryExtension.ToDictionary(object), DictionaryExtension.ToDictionary<T>(object), DictionaryExtension.ToIDictionary(object), DictionaryExtension.ToIDictionary<T>(object), ObjectExtension.ToJson(object), ObjectExtension.ToJson(object, JsonSerializerOptions), ObjectExtension.ToJsonWeb(object), ObjectExtension.ToJsonWeb(object, Action<JsonSerializerOptions>), ObjectExtension.ToTryVar<T>(object, T), ObjectExtension.ToVar<T>(object), ObjectExtension.ToVar(object, Type, bool), ObjectExtension.ToVar(object, string), ObjectExtension.ToXml(object)

Properties ​

Array ​

获取连续内存

csharp
ArraySegment<byte> Array { get; }

Property Value ​

ArraySegment<byte>

IsDispose ​

获取是否被回收

csharp
bool IsDispose { get; }

Property Value ​

bool

Length ​

流长度

csharp
int Length { get; }

Property Value ​

int

Memory ​

返回数据

csharp
Memory<byte> Memory { get; }

Property Value ​

Memory<byte>

OnlyData ​

仅标记作用

csharp
bool OnlyData { get; }

Property Value ​

bool

Span ​

返回数据

csharp
Span<byte> Span { get; }

Property Value ​

Span<byte>

Methods ​

GetIMemoryOwner() ​

获取内存器核心

csharp
IMemoryOwner<byte> GetIMemoryOwner()

Returns ​

IMemoryOwner<byte>

TransferByte() ​

移交内存器

csharp
BytesCore TransferByte()

Returns ​

BytesCore

基于Apache-2.0协议开源