Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
1360 lines (1357 sloc) 50 KB
title name permalink
PooledBitReader
PooledBitReader
/api/pooled-bit-reader/

PooledBitReader ``class``

Namespace: MLAPI.Serialization.Pooled

Assembly: MLAPI.dll

Disposable BitReader that returns the Reader to the BitReaderPool when disposed

Public Methods

public ``void`` Dispose();

Returns the PooledBitReader into the static BitReaderPool



Public Static Methods

public static [``PooledBitReader``](/MLAPI/api/pooled-bit-reader/) Get(``Stream`` stream);

Gets a PooledBitReader from the static BitReaderPool

Parameters

``Stream`` stream

Returns [``PooledBitReader``](/MLAPI/api/pooled-bit-reader/)

PooledBitReader



Inherited Methods

public ``double[]`` ReadDoubleArray(``double[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read double array from the stream.

Parameters

``double[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``double[]``

The array read from the stream.


public ``double[]`` ReadDoubleArrayPacked(``double[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read double array in a packed format from the stream.

Parameters

``double[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``double[]``

The array read from the stream.


public ``double[]`` ReadDoubleArrayDiff(``double[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read double array diff from the stream.

Parameters

``double[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``double[]``

The array created from the diff and the current version.


public ``double[]`` ReadDoubleArrayPackedDiff(``double[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read double array diff in a packed format from the stream.

Parameters

``double[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``double[]``

The array created from the diff and the current version.


public ``void`` SetStream(``Stream`` stream);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Changes the underlying stream the reader is reading from

Parameters

``Stream`` stream

The stream to read from


public ``int`` ReadByte();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Reads a single byte

Returns ``int``

The byte read as an integer


public ``byte`` ReadByteDirect();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Reads a byte

Returns ``byte``

The byte read


public ``bool`` ReadBit();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Reads a single bit

Returns ``bool``

The bit read


public ``bool`` ReadBool();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Reads a single bit

Returns ``bool``

The bit read


public ``void`` SkipPadBits();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Skips pad bits and aligns the position to the next byte


public ``object`` ReadObjectPacked(``Type`` type);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Reads a single boxed object of a given type in a packed format

Parameters

``Type`` type

The type to read

Returns ``object``

Returns the boxed read object


public ``float`` ReadSingle();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a single-precision floating point value from the stream.

Returns ``float``

The read value


public ``double`` ReadDouble();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a double-precision floating point value from the stream.

Returns ``double``

The read value


public ``float`` ReadSinglePacked();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a single-precision floating point value from the stream from a varint

Returns ``float``

The read value


public ``double`` ReadDoublePacked();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a double-precision floating point value from the stream as a varint

Returns ``double``

The read value


public ``Vector2`` ReadVector2();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a Vector2 from the stream.

Returns ``Vector2``

The Vector2 read from the stream.


public ``Vector2`` ReadVector2Packed();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a Vector2 from the stream.

Returns ``Vector2``

The Vector2 read from the stream.


public ``Vector3`` ReadVector3();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a Vector3 from the stream.

Returns ``Vector3``

The Vector3 read from the stream.


public ``Vector3`` ReadVector3Packed();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a Vector3 from the stream.

Returns ``Vector3``

The Vector3 read from the stream.


public ``Vector4`` ReadVector4();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a Vector4 from the stream.

Returns ``Vector4``

The Vector4 read from the stream.


public ``Vector4`` ReadVector4Packed();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a Vector4 from the stream.

Returns ``Vector4``

The Vector4 read from the stream.


public ``Color`` ReadColor();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a Color from the stream.

Returns ``Color``

The Color read from the stream.


public ``Color`` ReadColorPacked();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a Color from the stream.

Returns ``Color``

The Color read from the stream.


public ``Color32`` ReadColor32();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a Color32 from the stream.

Returns ``Color32``

The Color32 read from the stream.


public ``Ray`` ReadRay();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a Ray from the stream.

Returns ``Ray``

The Ray read from the stream.


public ``Ray`` ReadRayPacked();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a Ray from the stream.

Returns ``Ray``

The Ray read from the stream.


public ``float`` ReadRangedSingle(``float`` minValue, ``float`` maxValue, ``int`` bytes);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a single-precision floating point value from the stream. The value is between (inclusive) the minValue and maxValue.

Parameters

``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)

Returns ``float``

The read value


public ``double`` ReadRangedDouble(``double`` minValue, ``double`` maxValue, ``int`` bytes);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

read a double-precision floating point value from the stream. The value is between (inclusive) the minValue and maxValue.

Parameters

``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)

Returns ``double``

The read value


public ``Quaternion`` ReadRotationPacked();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Reads the rotation from the stream

Returns ``Quaternion``

The rotation read from the stream


public ``Quaternion`` ReadRotation(``int`` bytesPerAngle); Obsolete

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Reads the rotation from the stream

Parameters

``int`` bytesPerAngle

Returns ``Quaternion``

The rotation read from the stream


public ``Quaternion`` ReadRotation();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Reads the rotation from the stream

Returns ``Quaternion``

The rotation read from the stream


public ``ulong`` ReadBits(``int`` bitCount);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a certain amount of bits from the stream.

Parameters

``int`` bitCount

How many bits to read. Minimum 0, maximum 8.

Returns ``ulong``

The bits that were read


public ``byte`` ReadByteBits(``int`` bitCount);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a certain amount of bits from the stream.

Parameters

``int`` bitCount

How many bits to read. Minimum 0, maximum 64.

Returns ``byte``

The bits that were read


public ``byte`` ReadNibble(``bool`` asUpper);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a nibble (4 bits) from the stream.

Parameters

``bool`` asUpper

Whether or not the nibble should be left-shifted by 4 bits

Returns ``byte``

The nibble that was read


public ``byte`` ReadNibble();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a nibble (4 bits) from the stream.

Returns ``byte``

The nibble that was read


public ``sbyte`` ReadSByte();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Reads a signed byte

Returns ``sbyte``

Value read from stream.


public ``ushort`` ReadUInt16();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read an unsigned short (UInt16) from the stream.

Returns ``ushort``

Value read from stream.


public ``short`` ReadInt16();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a signed short (Int16) from the stream.

Returns ``short``

Value read from stream.


public ``Char`` ReadChar();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a single character from the stream

Returns ``Char``

Value read from stream.


public ``uint`` ReadUInt32();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read an unsigned int (UInt32) from the stream.

Returns ``uint``

Value read from stream.


public ``int`` ReadInt32();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a signed int (Int32) from the stream.

Returns ``int``

Value read from stream.


public ``ulong`` ReadUInt64();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read an unsigned long (UInt64) from the stream.

Returns ``ulong``

Value read from stream.


public ``long`` ReadInt64();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a signed long (Int64) from the stream.

Returns ``long``

Value read from stream.


public ``short`` ReadInt16Packed();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a ZigZag encoded varint signed short (Int16) from the stream.

Returns ``short``

Decoded un-varinted value.


public ``ushort`` ReadUInt16Packed();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a varint unsigned short (UInt16) from the stream.

Returns ``ushort``

Un-varinted value.


public ``Char`` ReadCharPacked();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a varint two-byte character from the stream.

Returns ``Char``

Un-varinted value.


public ``int`` ReadInt32Packed();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a ZigZag encoded varint signed int (Int32) from the stream.

Returns ``int``

Decoded un-varinted value.


public ``uint`` ReadUInt32Packed();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a varint unsigned int (UInt32) from the stream.

Returns ``uint``

Un-varinted value.


public ``long`` ReadInt64Packed();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a ZigZag encoded varint signed long(Int64) from the stream.

Returns ``long``

Decoded un-varinted value.


public ``ulong`` ReadUInt64Packed();

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a varint unsigned long (UInt64) from the stream.

Returns ``ulong``

Un-varinted value.


public ``StringBuilder`` ReadString(``bool`` oneByteChars);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a string from the stream.

Parameters

``bool`` oneByteChars

If set to true one byte chars are used and only ASCII is supported.

Returns ``StringBuilder``

The string that was read.


public ``StringBuilder`` ReadString(``StringBuilder`` builder, ``bool`` oneByteChars);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read a string from the stream.

Parameters

``StringBuilder`` builder

The builder to read the values into or null to use a new builder.

``bool`` oneByteChars

If set to true one byte chars are used and only ASCII is supported.

Returns ``StringBuilder``

The string that was read.


public ``StringBuilder`` ReadStringPacked(``StringBuilder`` builder);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read string encoded as a varint from the stream.

Parameters

``StringBuilder`` builder

The builder to read the string into or null to use a new builder

Returns ``StringBuilder``

The string that was read.


public ``StringBuilder`` ReadStringDiff(``string`` compare, ``bool`` oneByteChars);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read string diff from the stream.

Parameters

``string`` compare

The version to compare the diff to.

``bool`` oneByteChars

If set to true one byte chars are used and only ASCII is supported.

Returns ``StringBuilder``

The string based on the diff and the old version.


public ``StringBuilder`` ReadStringDiff(``StringBuilder`` builder, ``string`` compare, ``bool`` oneByteChars);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read string diff from the stream.

Parameters

``StringBuilder`` builder

The builder to read the string into or null to use a new builder.

``string`` compare

The version to compare the diff to.

``bool`` oneByteChars

If set to true one byte chars are used and only ASCII is supported.

Returns ``StringBuilder``

The string based on the diff and the old version


public ``StringBuilder`` ReadStringDiff(``StringBuilder`` compareAndBuffer, ``bool`` oneByteChars);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read string diff from the stream.

Parameters

``StringBuilder`` compareAndBuffer

The builder containing the current version and that will also be used as the output buffer.

``bool`` oneByteChars

If set to true one byte chars will be used and only ASCII will be supported.

Returns ``StringBuilder``

The string based on the diff and the old version.


public ``StringBuilder`` ReadStringPackedDiff(``string`` compare);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read string diff encoded as varints from the stream.

Parameters

``string`` compare

The version to compare the diff to.

Returns ``StringBuilder``

The string based on the diff and the old version.


public ``StringBuilder`` ReadStringPackedDiff(``StringBuilder`` builder, ``string`` compare);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read string diff encoded as varints from the stream.

Parameters

``StringBuilder`` builder

The builder to read the string into or null to use a new builder.

``string`` compare

The version to compare the diff to.

Returns ``StringBuilder``

The string based on the diff and the old version


public ``StringBuilder`` ReadStringPackedDiff(``StringBuilder`` compareAndBuffer);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read string diff encoded as varints from the stream.

Parameters

``StringBuilder`` compareAndBuffer

The builder containing the current version and that will also be used as the output buffer.

Returns ``StringBuilder``

The string based on the diff and the old version.


public ``byte[]`` ReadByteArray(``byte[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read byte array into an optional buffer from the stream.

Parameters

``byte[]`` readTo

The array to read into. If the array is not large enough or if it's null. A new array is created.

``long`` knownLength

The length of the array if it's known. Otherwise -1

Returns ``byte[]``

The byte array that has been read.


public ``byte[]`` ReadByteArrayDiff(``byte[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read byte array diff into an optional buffer from the stream.

Parameters

``byte[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The length of the array if it's known. Otherwise -1

Returns ``byte[]``

The byte array created from the diff and original.


public ``short[]`` ReadShortArray(``short[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read short array from the stream.

Parameters

``short[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``short[]``

The array read from the stream.


public ``short[]`` ReadShortArrayPacked(``short[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read short array in a packed format from the stream.

Parameters

``short[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``short[]``

The array read from the stream.


public ``short[]`` ReadShortArrayDiff(``short[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read short array diff from the stream.

Parameters

``short[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``short[]``

The array created from the diff and the current version.


public ``short[]`` ReadShortArrayPackedDiff(``short[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read short array diff in a packed format from the stream.

Parameters

``short[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``short[]``

The array created from the diff and the current version.


public ``ushort[]`` ReadUShortArray(``ushort[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read ushort array from the stream.

Parameters

``ushort[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``ushort[]``

The array read from the stream.


public ``ushort[]`` ReadUShortArrayPacked(``ushort[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read ushort array in a packed format from the stream.

Parameters

``ushort[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``ushort[]``

The array read from the stream.


public ``ushort[]`` ReadUShortArrayDiff(``ushort[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read ushort array diff from the stream.

Parameters

``ushort[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``ushort[]``

The array created from the diff and the current version.


public ``ushort[]`` ReadUShortArrayPackedDiff(``ushort[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read ushort array diff in a packed format from the stream.

Parameters

``ushort[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``ushort[]``

The array created from the diff and the current version.


public ``int[]`` ReadIntArray(``int[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read int array from the stream.

Parameters

``int[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``int[]``

The array read from the stream.


public ``int[]`` ReadIntArrayPacked(``int[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read int array in a packed format from the stream.

Parameters

``int[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``int[]``

The array read from the stream.


public ``int[]`` ReadIntArrayDiff(``int[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read int array diff from the stream.

Parameters

``int[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``int[]``

The array created from the diff and the current version.


public ``int[]`` ReadIntArrayPackedDiff(``int[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read int array diff in a packed format from the stream.

Parameters

``int[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``int[]``

The array created from the diff and the current version.


public ``uint[]`` ReadUIntArray(``uint[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read uint array from the stream.

Parameters

``uint[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``uint[]``

The array read from the stream.


public ``uint[]`` ReadUIntArrayPacked(``uint[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read uint array in a packed format from the stream.

Parameters

``uint[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``uint[]``

The array read from the stream.


public ``uint[]`` ReadUIntArrayDiff(``uint[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read uint array diff from the stream.

Parameters

``uint[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``uint[]``

The array created from the diff and the current version.


public ``long[]`` ReadLongArray(``long[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read long array from the stream.

Parameters

``long[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``long[]``

The array read from the stream.


public ``long[]`` ReadLongArrayPacked(``long[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read long array in a packed format from the stream.

Parameters

``long[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``long[]``

The array read from the stream.


public ``long[]`` ReadLongArrayDiff(``long[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read long array diff from the stream.

Parameters

``long[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``long[]``

The array created from the diff and the current version.


public ``long[]`` ReadLongArrayPackedDiff(``long[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read long array diff in a packed format from the stream.

Parameters

``long[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``long[]``

The array created from the diff and the current version.


public ``ulong[]`` ReadULongArray(``ulong[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read ulong array from the stream.

Parameters

``ulong[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``ulong[]``

The array read from the stream.


public ``ulong[]`` ReadULongArrayPacked(``ulong[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read ulong array in a packed format from the stream.

Parameters

``ulong[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``ulong[]``

The array read from the stream.


public ``ulong[]`` ReadULongArrayDiff(``ulong[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read ulong array diff from the stream.

Parameters

``ulong[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``ulong[]``

The array created from the diff and the current version.


public ``ulong[]`` ReadULongArrayPackedDiff(``ulong[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read ulong array diff in a packed format from the stream.

Parameters

``ulong[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``ulong[]``

The array created from the diff and the current version.


public ``float[]`` ReadFloatArray(``float[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read float array from the stream.

Parameters

``float[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``float[]``

The array read from the stream.


public ``float[]`` ReadFloatArrayPacked(``float[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read float array in a packed format from the stream.

Parameters

``float[]`` readTo

The buffer to read into or null to create a new array

``long`` knownLength

The known length or -1 if unknown

Returns ``float[]``

The array read from the stream.


public ``float[]`` ReadFloatArrayDiff(``float[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read float array diff from the stream.

Parameters

``float[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``float[]``

The array created from the diff and the current version.


public ``float[]`` ReadFloatArrayPackedDiff(``float[]`` readTo, ``long`` knownLength);

Inherited from: [``BitReader``](/MLAPI/api/bit-reader/)

Read float array diff in a packed format from the stream.

Parameters

``float[]`` readTo

The buffer containing the old version or null.

``long`` knownLength

The known length or -1 if unknown

Returns ``float[]``

The array created from the diff and the current version.


public ``string`` ToString();

Inherited from: ``object``

public ``bool`` Equals(``object`` obj);

Inherited from: ``object``
Parameters

``object`` obj


public ``int`` GetHashCode();

Inherited from: ``object``

public ``Type`` GetType();

Inherited from: ``object``

You can’t perform that action at this time.