Enhanced C#
Language of your choice: library documentation
Public fields | Public static fields | Properties | Public Member Functions | List of all members
Loyc.Collections.Impl.KeyWalker Struct Reference

Internal implementation class. Represents a pointer to a location within a byte array. More...


Source file:

Remarks

Internal implementation class. Represents a pointer to a location within a byte array.

Public fields

byte[] _key
 the buffer may be larger than the key
 
int _offset
 _key[_offset] is the next byte of the key
 
int _left
 number of bytes in the key that are not yet consumed
 

Public static fields

static readonly KeyWalker Empty = new KeyWalker(EmptyArray<byte>.Value, 0)
 

Properties

byte this[int index] [get, set]
 
int Left [get]
 
int Offset [get, set]
 
byte[] Buffer [get]
 

Public Member Functions

 KeyWalker (byte[] key, int left)
 
 KeyWalker (byte[] key, int offset, int left)
 
void Advance (int amount)
 
void Reset ()
 
void Reset (int offset)
 
void Reset (byte[] key, int offset, int left)