Method | Description | |
---|---|---|
GetSize ( uint value1 ) : int |
Gets the number of bytes required to write the provided value.
|
|
GetSize ( ulong value1 ) : int |
Gets the number of bytes required to write the provided value.
|
|
GetSizeInt15 ( short value1 ) : int |
Gets the number of bytes required to write the provided value.
|
|
Measure15 ( byte stream, int position ) : int |
Gets the number of bytes for the supplied value in the stream.
|
|
MeasureInt15 ( byte stream ) : int |
Gets the number of bytes for the supplied value in the stream.
|
|
MeasureUInt32 ( byte stream ) : int |
Gets the number of bytes for the supplied value in the stream.
|
|
MeasureUInt32 ( byte stream, int position ) : int |
Gets the number of bytes for the supplied value in the stream.
|
|
MeasureUInt64 ( byte stream ) : int |
Gets the number of bytes for the supplied value in the stream.
|
|
MeasureUInt64 ( byte stream, int position ) : int |
Gets the number of bytes for the supplied value in the stream.
|
|
ReadInt15 ( Func |
Reads a 7-bit encoded uint.
|
|
ReadInt15 ( Stream stream ) : short |
Reads a 7-bit encoded uint. This method will check for the end of the stream |
|
ReadUInt32 ( Func |
Reads a 7-bit encoded uint.
|
|
ReadUInt32 ( Stream stream ) : uint |
Reads a 7-bit encoded uint. This method will check for the end of the stream |
|
ReadUInt64 ( Func |
Reads a 7-bit encoded uint.
|
|
ReadUInt64 ( Stream stream ) : ulong |
Reads a 7-bit encoded ulong. This method will check for the end of the stream |
|
Write ( Action |
Writes the 7-bit encoded value to the provided stream.
|
|
Write ( Action |
Writes the 7-bit encoded value to the provided stream.
|
|
WriteInt15 ( Action |
Writes the 7-bit encoded value to the provided stream.
|
Method | Description | |
---|---|---|
ReadInt15 ( byte stream, int &position ) : short | ||
ReadUInt32 ( byte stream, int &position ) : uint | ||
ReadUInt64 ( byte stream, int &position ) : ulong | ||
Write ( byte stream, uint value1 ) : int | ||
Write ( byte stream, ulong value1 ) : int | ||
Write ( byte stream, int &position, uint value1 ) : void | ||
Write ( byte stream, int &position, ulong value1 ) : void | ||
WriteInt15 ( byte stream, short value1 ) : int | ||
WriteInt15 ( byte stream, int &position, short value1 ) : void |
public static GetSize ( uint value1 ) : int | ||
value1 | uint | the value to measure |
return | int |
public static GetSize ( ulong value1 ) : int | ||
value1 | ulong | the value to measure |
return | int |
public static GetSizeInt15 ( short value1 ) : int | ||
value1 | short | the value to measure |
return | int |
public static Measure15 ( byte stream, int position ) : int | ||
stream | byte | |
position | int | |
return | int |
public static MeasureInt15 ( byte stream ) : int | ||
stream | byte | |
return | int |
public static MeasureUInt32 ( byte stream ) : int | ||
stream | byte | |
return | int |
public static MeasureUInt32 ( byte stream, int position ) : int | ||
stream | byte | |
position | int | |
return | int |
public static MeasureUInt64 ( byte stream ) : int | ||
stream | byte | |
return | int |
public static MeasureUInt64 ( byte stream, int position ) : int | ||
stream | byte | |
position | int | |
return | int |
public static ReadInt15 ( Func |
||
stream | Func |
A delegate where to read the next byte |
return | short |
public static ReadInt15 ( Stream stream ) : short | ||
stream | Stream | A stream to read from. |
return | short |
public static ReadUInt32 ( Func |
||
stream | Func |
A delegate where to read the next byte |
return | uint |
public static ReadUInt32 ( Stream stream ) : uint | ||
stream | Stream | A stream to read from. |
return | uint |
public static ReadUInt64 ( Func |
||
stream | Func |
A delegate where to read the next byte |
return | ulong |
public static ReadUInt64 ( Stream stream ) : ulong | ||
stream | Stream | A stream to read from. |
return | ulong |
public static Write ( Action |
||
stream | Action |
a delegate to a write byte method |
value1 | uint | the value to write |
return | void |
public static Write ( Action |
||
stream | Action |
a delegate to a write byte method |
value1 | ulong | the value to write |
return | void |
public static WriteInt15 ( Action |
||
stream | Action |
a delegate to a write byte method |
value1 | short | the value to write |
return | void |