Reads a variable length integer. Reads until the last byte is found. The length can vary between 8-bits to 64-bits.
Declaration Syntax
C# | Visual Basic |
public static long ReadVariableLengthInteger( ref BinaryReader reader, ref int intLength )
Public Shared Function ReadVariableLengthInteger ( _ ByRef reader As BinaryReader, _ ByRef intLength As Integer _ ) As Long
Parameters
- reader (BinaryReader%)
- Binary reader
- intLength (Int32%)
- Integer length (1 = 8-bit, 2 = 16-bit, etc.)
Return Value
Value