public sealed class PooledBytesReader : IDisposable,
IBytesReaderPublic NotInheritable Class PooledBytesReader
Implements IDisposable, IBytesReader[<SealedAttribute>]
type PooledBytesReader =
class
interface IDisposable
interface IBytesReader
end| PooledBytesReader | 初始化 PooledBytesReader 类的一个新实例 |
| BytesRead | 获取或设置已读取的字节数。 |
| BytesRemaining | 获取剩余可读取的字节数。 |
| Sequence | 获取当前可读取的字节序列。 |
| TotalSequence | 获取总的字节序列。 |
| Advance | 推进指定数量的字节。 |
| Clear | 清理内存所有者。 |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
| GetHashCode | Serves as the default hash function. (继承自 Object。) |
| GetMemory | 获取指定数量的只读内存字节块。 |
| GetSpan | 获取指定数量的只读字节跨度。 |
| GetType | Gets the Type of the current instance. (继承自 Object。) |
| Read | 读取字节到指定的跨度中。 |
| Reset(ReadOnlyMemoryByte) | 重置读取器,使用新的只读内存。 |
| Reset(ReadOnlySequenceByte) | 重置读取器,使用新的字节序列。 |
| ToString | Returns a string that represents the current object. (继承自 Object。) |
| SafeDispose |
安全性释放(不用判断对象是否为空)。不会抛出任何异常。
(由 SystemExtension 定义。) |
| ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |