JsonUnmanagedReader
Namespace: SnowBank.Data.Json · struct
Implements: IJsonReader
JSON text reader that reads from UTF-8 encoded bytes in native memory
Constructors
JsonUnmanagedReader
JsonUnmanagedReader(Byte* buffer, int length, bool autoDetectBom = true)
Create a new UTF-8 reader from an unmanaged memory buffer
buffer— Buffer containing UTF-8 encoded byteslength— Length of the buffer (in bytes)autoDetectBom— 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