SoftBuffer 方法 |
SoftBuffer 类型公开以下成员。
| 名称 | 说明 | |
|---|---|---|
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
| Dispose(Boolean) |
释放当前的对象
| |
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
| GetBool(Int32) |
获取指定的位置的bool值,如果超出,则引发异常 Get the bool value at the specified position, if it exceeds, an exception is thrown | |
| GetBool(Int32, Int32) |
获取指定位置的bool数组值,如果超过,则引发异常 Get the bool array value at the specified position, if it exceeds, an exception is thrown | |
| GetByte |
获取byte类型的数据 Get byte data | |
| GetBytes |
获取内存所有的数据信息 Get all data information in memory | |
| GetBytes(Int32, Int32) |
获取内存指定长度的数据信息 Get data information of specified length in memory | |
| GetCustomerT |
读取自定义类型的数据,需要规定解析规则 Read custom types of data, need to specify the parsing rules | |
| GetDouble(Int32) |
获取double类型的数据到缓存区 Get double type data to cache | |
| GetDouble(Int32, Int32) |
获取double类型的数组到缓存区 Get double type array to cache | |
| GetHashCode | Serves as the default hash function. (继承自 Object。) | |
| GetInt16(Int32) |
获取short类型的数据到缓存区 Get short data to the cache | |
| GetInt16(Int32, Int32) |
获取short类型的数组到缓存区 Get short type array to cache | |
| GetInt32(Int32) |
获取int类型的数据到缓存区 Get int type data to cache | |
| GetInt32(Int32, Int32) |
获取int类型的数组到缓存区 Get int type array to cache | |
| GetInt64(Int32) |
获取long类型的数据到缓存区 Get long type data to cache | |
| GetInt64(Int32, Int32) |
获取long类型的数组到缓存区 Get long type array to cache | |
| GetSingle(Int32) |
获取float类型的数据到缓存区 Get float type data to cache | |
| GetSingle(Int32, Int32) |
获取float类型的数组到缓存区 Get float type array to cache | |
| GetType | Gets the Type of the current instance. (继承自 Object。) | |
| GetUInt16(Int32) |
获取ushort类型的数据到缓存区 Get ushort type data to cache | |
| GetUInt16(Int32, Int32) |
获取ushort类型的数组到缓存区 Get ushort type array to cache | |
| GetUInt32(Int32) |
获取uint类型的数据到缓存区 Get uint type data to cache | |
| GetUInt32(Int32, Int32) |
获取uint类型的数组到缓存区 Get uint type array to cache | |
| GetUInt64(Int32) |
获取ulong类型的数据到缓存区 Get ulong type data to cache | |
| GetUInt64(Int32, Int32) |
获取ulong类型的数组到缓存区 Get ulong type array to cache | |
| LoadFromBuffer |
从指定的byte[]数组中加载数据到多个SoftBuffer对象中 | |
| MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
| SetBool(Boolean, Int32) |
设置指定的位置bool值,如果超出,则丢弃数据,该位置是指按照位为单位排序的 Set the bool value at the specified position, if it is exceeded, the data is discarded, the position refers to sorting in units of bits | |
| SetBool(Boolean, Int32) |
设置指定的位置的bool数组,如果超出,则丢弃数据,该位置是指按照位为单位排序的 Set the bool array at the specified position, if it is exceeded, the data is discarded, the position refers to sorting in units of bits | |
| SetBytes(Byte, Int32) |
设置指定的位置的数据块,如果超出,则丢弃数据 Set the data block at the specified position, if it is exceeded, the data is discarded | |
| SetBytes(Byte, Int32, Int32) |
设置指定的位置的数据块,如果超出,则丢弃数据
Set the data block at the specified position, if it is exceeded, the data is discarded
| |
| SetBytes(Byte, Int32, Int32, Int32) |
设置指定的位置的数据块,如果超出,则丢弃数据 Set the data block at the specified position, if it is exceeded, the data is discarded | |
| SetCustomerT |
写入自定义类型的数据到缓存中去,需要规定生成字节的方法 Write custom type data to the cache, need to specify the method of generating bytes | |
| SetValue(Byte, Int32) |
设置byte类型的数据到缓存区 Set byte type data to the cache area | |
| SetValue(Double, Int32) |
设置double类型的数据到缓存区 Set double type data to the cache area | |
| SetValue(Double, Int32) |
设置double数组的数据到缓存区 Set double array data to the cache area | |
| SetValue(Int16, Int32) |
设置short类型的数据到缓存区 Set short type data to the cache area | |
| SetValue(Int16, Int32) |
设置short数组的数据到缓存区 Set short array data to the cache area | |
| SetValue(Int32, Int32) |
设置int类型的数据到缓存区 Set int type data to the cache area | |
| SetValue(Int32, Int32) |
设置int数组的数据到缓存区 Set int array data to the cache area | |
| SetValue(Int64, Int32) |
设置long类型的数据到缓存区 Set long type data to the cache area | |
| SetValue(Int64, Int32) |
设置long数组的数据到缓存区 Set long array data to the cache area | |
| SetValue(Single, Int32) |
设置float类型的数据到缓存区 Set float type data to the cache area | |
| SetValue(Single, Int32) |
设置float数组的数据到缓存区 Set float array data to the cache area | |
| SetValue(UInt16, Int32) |
设置ushort类型的数据到缓存区 Set ushort type data to the cache area | |
| SetValue(UInt16, Int32) |
设置ushort数组的数据到缓存区 Set ushort array data to the cache area | |
| SetValue(UInt32, Int32) |
设置uint类型的数据到缓存区 Set uint byte data to the cache area | |
| SetValue(UInt32, Int32) |
设置uint数组的数据到缓存区 Set uint array data to the cache area | |
| SetValue(UInt64, Int32) |
设置ulong类型的数据到缓存区 Set ulong byte data to the cache area | |
| SetValue(UInt64, Int32) |
设置ulong数组的数据到缓存区 Set long array data to the cache area | |
| ToMemoryStream |
将所有的缓存数据块转换为一个MemoryStream对象 | |
| ToString | Returns a string that represents the current object. (重写 ObjectToString.) |
| 名称 | 说明 | |
|---|---|---|
| ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |