Class Decoder
- Namespace
- DeltaPack
- Assembly
- DeltaPack.dll
- Inheritance
-
Decoder
- Inherited Members
-
Constructors
Decoder(byte[])
public Decoder(byte[] buf)
Parameters
buf byte[]
Methods
NextArrayDiff<T>(IList<T>, Func<T>, Func<T, T>)
public List<T> NextArrayDiff<T>(IList<T> arr, Func<T> decode, Func<T, T> decodeDiff)
Parameters
arr IList<T>
decode Func<T>
decodeDiff Func<T, T>
Returns
- List<T>
Type Parameters
T
NextArray<T>(Func<T>)
public List<T> NextArray<T>(Func<T> innerRead)
Parameters
innerRead Func<T>
Returns
- List<T>
Type Parameters
T
NextBoolean()
public bool NextBoolean()
Returns
- bool
NextBooleanDiff(bool)
public bool NextBooleanDiff(bool a)
Parameters
a bool
Returns
- bool
NextBoundedInt(long)
public long NextBoundedInt(long min)
Parameters
min long
Returns
- long
NextBoundedIntDiff(long, long)
public long NextBoundedIntDiff(long a, long min)
Parameters
a long
min long
Returns
- long
NextEnum(int)
public int NextEnum(int numBits)
Parameters
numBits int
Returns
- int
NextEnumDiff(int, int)
public int NextEnumDiff(int a, int numBits)
Parameters
a int
numBits int
Returns
- int
NextFieldDiff<T>(T, Func<T, T>)
public T NextFieldDiff<T>(T a, Func<T, T> decodeDiff)
Parameters
a T
decodeDiff Func<T, T>
Returns
- T
Type Parameters
T
NextFloat()
Returns
- float
NextFloatDiff(float)
public float NextFloatDiff(float a)
Parameters
a float
Returns
- float
NextFloatQuantized(float)
public float NextFloatQuantized(float precision)
Parameters
precision float
Returns
- float
NextFloatQuantizedDiff(float, float)
public float NextFloatQuantizedDiff(float a, float precision)
Parameters
a float
precision float
Returns
- float
NextInt()
Returns
- long
NextIntDiff(long)
public long NextIntDiff(long a)
Parameters
a long
Returns
- long
NextObjectDiff<T>(T, Func<T>)
public T NextObjectDiff<T>(T a, Func<T> decodeDiff)
Parameters
a T
decodeDiff Func<T>
Returns
- T
Type Parameters
T
NextOptionalDiff<T>(T?, Func<T>, Func<T, T>)
public T? NextOptionalDiff<T>(T? a, Func<T> decode, Func<T, T> decodeDiff) where T : struct
Parameters
a T?
decode Func<T>
decodeDiff Func<T, T>
Returns
- T?
Type Parameters
T
NextOptionalDiff<T>(T?, Func<T>, Func<T, T>)
public T? NextOptionalDiff<T>(T? a, Func<T> decode, Func<T, T> decodeDiff) where T : class
Parameters
a T
decode Func<T>
decodeDiff Func<T, T>
Returns
- T
Type Parameters
T
NextOptional<T>(Func<T>)
public T? NextOptional<T>(Func<T> innerRead) where T : class
Parameters
innerRead Func<T>
Returns
- T
Type Parameters
T
NextRecordDiff<TKey, TValue>(OrderedDictionary<TKey, TValue>, Func<TKey>, Func<TValue>, Func<TValue, TValue>)
public OrderedDictionary<TKey, TValue> NextRecordDiff<TKey, TValue>(OrderedDictionary<TKey, TValue> obj, Func<TKey> decodeKey, Func<TValue> decodeVal, Func<TValue, TValue> decodeDiff) where TKey : notnull
Parameters
obj OrderedDictionary<TKey, TValue>
decodeKey Func<TKey>
decodeVal Func<TValue>
decodeDiff Func<TValue, TValue>
Returns
- OrderedDictionary<TKey, TValue>
Type Parameters
TKey
TValue
NextRecord<TKey, TValue>(Func<TKey>, Func<TValue>)
public OrderedDictionary<TKey, TValue> NextRecord<TKey, TValue>(Func<TKey> innerKeyRead, Func<TValue> innerValRead) where TKey : notnull
Parameters
innerKeyRead Func<TKey>
innerValRead Func<TValue>
Returns
- OrderedDictionary<TKey, TValue>
Type Parameters
TKey
TValue
NextString()
public string NextString()
Returns
- string
NextStringDiff(string)
public string NextStringDiff(string a)
Parameters
a string
Returns
- string
NextUInt()
Returns
- ulong