| title | BitReader |
|---|---|
| name | BitReader |
| permalink | /api/bit-reader/ |
A BinaryReader that can do bit wise manipulation when backed by a BitStream
Creates a new BitReader backed by a given stream
``Stream`` stream
The stream to read from
Changes the underlying stream the reader is reading from
``Stream`` stream
The stream to read from
Reads a single boxed object of a given type in a packed format
``Type`` type
The type to read
Returns the boxed read object
Read a single-precision floating point value from the stream.
The read value
Read a double-precision floating point value from the stream.
The read value
Read a single-precision floating point value from the stream from a varint
The read value
Read a double-precision floating point value from the stream as a varint
The read value
Read a Vector2 from the stream.
The Vector2 read from the stream.
Read a Vector2 from the stream.
The Vector2 read from the stream.
Read a Vector3 from the stream.
The Vector3 read from the stream.
Read a Vector3 from the stream.
The Vector3 read from the stream.
Read a Vector4 from the stream.
The Vector4 read from the stream.
Read a Vector4 from the stream.
The Vector4 read from the stream.
Read a Color from the stream.
The Color read from the stream.
Read a Color from the stream.
The Color read from the stream.
Read a Color32 from the stream.
The Color32 read from the stream.
Read a Ray from the stream.
The Ray read from the stream.
Read a single-precision floating point value from the stream. The value is between (inclusive) the minValue and maxValue.
``float`` minValue
Minimum value that this value could be
``float`` maxValue
Maximum possible value that this could be
``int`` bytes
How many bytes the compressed value occupies. Must be between 1 and 4 (inclusive)
The read value
read a double-precision floating point value from the stream. The value is between (inclusive) the minValue and maxValue.
``double`` minValue
Minimum value that this value could be
``double`` maxValue
Maximum possible value that this could be
``int`` bytes
How many bytes the compressed value occupies. Must be between 1 and 8 (inclusive)
The read value
Read a rotation from the stream.
``int`` bytesPerAngle
How many bytes each angle occupies. Must be between 1 and 4 (inclusive)
The rotation read from the stream
Read a certain amount of bits from the stream.
``int`` bitCount
How many bits to read. Minimum 0, maximum 8.
The bits that were read
Read a certain amount of bits from the stream.
``int`` bitCount
How many bits to read. Minimum 0, maximum 64.
The bits that were read
Read a nibble (4 bits) from the stream.
``bool`` asUpper
Whether or not the nibble should be left-shifted by 4 bits
The nibble that was read
Read a nibble (4 bits) from the stream.
The nibble that was read
Read an unsigned short (UInt16) from the stream.
Value read from stream.
Read a signed short (Int16) from the stream.
Value read from stream.
Read a single character from the stream
Value read from stream.
Read an unsigned int (UInt32) from the stream.
Value read from stream.
Read a signed int (Int32) from the stream.
Value read from stream.
Read an unsigned long (UInt64) from the stream.
Value read from stream.
Read a signed long (Int64) from the stream.
Value read from stream.
Read a ZigZag encoded varint signed short (Int16) from the stream.
Decoded un-varinted value.
Read a varint unsigned short (UInt16) from the stream.
Un-varinted value.
Read a varint two-byte character from the stream.
Un-varinted value.
Read a ZigZag encoded varint signed int (Int32) from the stream.
Decoded un-varinted value.
Read a varint unsigned int (UInt32) from the stream.
Un-varinted value.
Read a ZigZag encoded varint signed long(Int64) from the stream.
Decoded un-varinted value.
Read a varint unsigned long (UInt64) from the stream.
Un-varinted value.
``StringBuilder`` builder
``bool`` oneByteChars
``StringBuilder`` builder
``string`` compare
``bool`` oneByteChars
public ``StringBuilder`` ReadStringDiff(``StringBuilder`` builder, ``string`` compare, ``bool`` oneByteChars);
``StringBuilder`` builder
``string`` compare
``bool`` oneByteChars
``StringBuilder`` compareAndBuffer
``bool`` oneByteChars
``StringBuilder`` builder
``string`` compare
``StringBuilder`` compareAndBuffer
``byte[]`` readTo
``long`` knownLength
``byte[]`` readTo
``long`` knownLength
``short[]`` readTo
``long`` knownLength
``short[]`` readTo
``long`` knownLength
``short[]`` readTo
``long`` knownLength
``short[]`` readTo
``long`` knownLength
``ushort[]`` readTo
``long`` knownLength
``ushort[]`` readTo
``long`` knownLength
``ushort[]`` readTo
``long`` knownLength
``ushort[]`` readTo
``long`` knownLength
``int[]`` readTo
``long`` knownLength
``int[]`` readTo
``long`` knownLength
``int[]`` readTo
``long`` knownLength
``int[]`` readTo
``long`` knownLength
``uint[]`` readTo
``long`` knownLength
``uint[]`` readTo
``long`` knownLength
``uint[]`` readTo
``long`` knownLength
``long[]`` readTo
``long`` knownLength
``long[]`` readTo
``long`` knownLength
``long[]`` readTo
``long`` knownLength
``long[]`` readTo
``long`` knownLength
``ulong[]`` readTo
``long`` knownLength
``ulong[]`` readTo
``long`` knownLength
``ulong[]`` readTo
``long`` knownLength
``ulong[]`` readTo
``long`` knownLength
``float[]`` readTo
``long`` knownLength
``float[]`` readTo
``long`` knownLength
``float[]`` readTo
``long`` knownLength
``float[]`` readTo
``long`` knownLength
``double[]`` readTo
``long`` knownLength
``double[]`` readTo
``long`` knownLength
``double[]`` readTo
``long`` knownLength
``double[]`` readTo
``long`` knownLength