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

Source file:

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]
 Current byte in data stream More...
 
int BytesLeft => Buf.Length - Index
 
ReadOnlySpan< byte > Span => Buf.Slice(Index)
 

Public Member Functions

ReadOnlySpan< byte > Slice (int offset, int size)
 

Member Data Documentation

ReadOnlySpan<byte> SyncBinary.ReaderState.ReadingPointer.Buf

The part of the file that is currently loaded.

byte SyncBinary.ReaderState.ReadingPointer.Byte => Buf[Index]

Current byte in data stream

int SyncBinary.ReaderState.ReadingPointer.Index

The currrent position as an index into Buf.