public sealed class SegmentedBytesWriter : DisposableObject,
IBytesWriter, IBufferWriter<byte>Public NotInheritable Class SegmentedBytesWriter
Inherits DisposableObject
Implements IBytesWriter, IBufferWriter(Of Byte)[<SealedAttribute>]
type SegmentedBytesWriter =
class
inherit DisposableObject
interface IBytesWriter
interface IBufferWriter<byte>
end| SegmentedBytesWriter | 初始化 SegmentedBytesWriter 类的新实例,使用默认的最小缓冲区大小(4096字节)。 |
| SegmentedBytesWriter(Int32) | 使用指定的初始容量初始化SegmentedBytesWriter的新实例。 |
| SegmentedBytesWriter(Int32, ArrayPoolByte) | 使用指定的初始容量和数组池初始化SegmentedBytesWriter的新实例。 |
| DisposedValue |
标识该对象是否已被释放
(继承自 DisposableObject。) |
| Sequence | 获取当前写入器的字节序列。 |
| SupportsRewind | 获取一个值,该值指示写入器是否支持回退操作。 |
| Version | 获取写入器的版本号。 |
| WrittenCount | 获取已写入的字节数。 |
| Advance | Notifies the IBufferWriterT that count data items were written to the output SpanT or MemoryT. |
| Clear | 清空所有段的数据,重置写入器到初始状态。 |
| Dispose |
释放资源。内部已经处理了SuppressFinalize(Object) (继承自 DisposableObject。) |
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
| GetHashCode | Serves as the default hash function. (继承自 Object。) |
| GetMemory | Returns a MemoryT to write to that is at least the requested size (specified by sizeHint). |
| GetSpan | Returns a SpanT to write to that is at least the requested size (specified by sizeHint). |
| GetType | Gets the Type of the current instance. (继承自 Object。) |
| ToString | Returns a string that represents the current object. (继承自 Object。) |
| Write | 将指定的字节范围写入到缓冲区中。 |
| Map |
将源对象的属性映射到目标对象的属性中。
(由 Mapper 定义。) |
| Map |
将源对象映射到目标类型的实例。
(由 Mapper 定义。) |
| MapTTarget |
将源对象映射到指定目标类型的新实例。
(由 Mapper 定义。) |
| ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |