JsonSliceReader
Namespace: SnowBank.Data.Json · struct
Implements: IJsonReader
JSON text reader that reads UTF-8 encoded bytes from an in-memory buffer
Constructors
JsonSliceReader
JsonSliceReader(Slice buffer, bool autoDetectBom = true)
Create a new UTF-8 reader from an unmanaged memory buffer
buffer— Buffer containing UTF-8 encoded bytesautoDetectBom— If true, skip the UTF-8 BOM if found (EF BB BF)
Properties
HasMore
bool? HasMore { get; }
Returns true if there are more characters to read
Remaining
int? Remaining { get; }
Returns the number of remaining characters that are still available
Methods
Read
int Read()
Returns the next character in the source, or -1 if no more characters are available