Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public fields | Public Member Functions | List of all members
SyncJson.Parser.JsonPointer Struct Reference

Represents a pointer to the current position in the JSON data stream, plus the index where the current item started and the property key at that index. More...


Source file:

Remarks

Represents a pointer to the current position in the JSON data stream, plus the index where the current item started and the property key at that index.

Public fields

ReadOnlySpan< byte > Buf
 The part of the file that is currently loaded. More...
 
int Index
 The currrent position as an index into Buf. More...
 
byte Byte => Buf[Index]
 Returns the byte at the current position. More...
 
byte this[int offs] => Buf[Index + offs]
 
JsonValue CurPropKey
 
int PropKeyIndex
 

Public Member Functions

int ByteOr (int fallback)
 
override string ToString ()
 

Member Data Documentation

ReadOnlySpan<byte> SyncJson.Parser.JsonPointer.Buf

The part of the file that is currently loaded.

byte SyncJson.Parser.JsonPointer.Byte => Buf[Index]

Returns the byte at the current position.

int SyncJson.Parser.JsonPointer.Index

The currrent position as an index into Buf.