| title | PooledBitWriter |
|---|---|
| name | PooledBitWriter |
| permalink | /api/pooled-bit-writer/ |
Disposable BitWriter that returns the Writer to the BitWriterPool when disposed
Gets a PooledBitWriter from the static BitWriterPool
``Stream`` stream
PooledBitWriter
Changes the underlying stream the writer is writing to
``Stream`` stream
The stream to write to
Writes a boxed object in a packed format
``object`` value
The object to write
Write single-precision floating point value to the stream
``float`` value
Value to write
Write double-precision floating point value to the stream
``double`` value
Value to write
Write single-precision floating point value to the stream as a varint
``float`` value
Value to write
Write double-precision floating point value to the stream as a varint
``double`` value
Value to write
Convenience method that writes two non-packed Vector3 from the ray to the stream
``Ray`` ray
Ray to write
Convenience method that writes two packed Vector3 from the ray to the stream
``Ray`` ray
Ray to write
Convenience method that writes four non-varint floats from the color to the stream
``Color`` color
Color to write
Convenience method that writes four varint floats from the color to the stream
``Color`` color
Color to write
Convenience method that writes four non-varint floats from the color to the stream
``Color32`` color32
Color32 to write
Convenience method that writes two non-varint floats from the vector to the stream
``Vector2`` vector2
Vector to write
Convenience method that writes two varint floats from the vector to the stream
``Vector2`` vector2
Vector to write
Convenience method that writes three non-varint floats from the vector to the stream
``Vector3`` vector3
Vector to write
Convenience method that writes three varint floats from the vector to the stream
``Vector3`` vector3
Vector to write
Convenience method that writes four non-varint floats from the vector to the stream
``Vector4`` vector4
Vector to write
Convenience method that writes four varint floats from the vector to the stream
``Vector4`` vector4
Vector to write
public ``void`` WriteRangedSingle(``float`` value, ``float`` minValue, ``float`` maxValue, ``int`` bytes);
Write a single-precision floating point value to the stream. The value is between (inclusive) the minValue and maxValue.
``float`` value
Value to write
``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 result should occupy. Must be between 1 and 4 (inclusive)
public ``void`` WriteRangedDouble(``double`` value, ``double`` minValue, ``double`` maxValue, ``int`` bytes);
Write a double-precision floating point value to the stream. The value is between (inclusive) the minValue and maxValue.
``double`` value
Value to write
``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 result should occupy. Must be between 1 and 8 (inclusive)
Write a rotation to the stream.
``Quaternion`` rotation
Rotation to write
``int`` bytesPerAngle
How many bytes each written angle should occupy. Must be between 1 and 4 (inclusive)
Writes a single bit
``bool`` bit
Writes a bool as a single bit
``bool`` value
Writes pad bits to make the underlying stream aligned
Write the lower half (lower nibble) of a byte.
``byte`` value
Value containing nibble to write.
Write either the upper or lower nibble of a byte to the stream.
``byte`` value
Value holding the nibble
``bool`` upper
Whether or not the upper nibble should be written. True to write the four high bits, else writes the four low bits.
Write s certain amount of bits to the stream.
``ulong`` value
Value to get bits from.
``int`` bitCount
Amount of bits to write
Write bits to stream.
``byte`` value
Value to get bits from.
``int`` bitCount
Amount of bits to write.
Write a signed byte to the stream.
``sbyte`` value
Value to write
Write a single character to the stream.
``Char`` c
Character to write
Write an unsigned short (UInt16) to the stream.
``ushort`` value
Value to write
Write a signed short (Int16) to the stream.
``short`` value
Value to write
Write an unsigned int (UInt32) to the stream.
``uint`` value
Value to write
Write a signed int (Int32) to the stream.
``int`` value
Value to write
Write an unsigned long (UInt64) to the stream.
``ulong`` value
Value to write
Write a signed long (Int64) to the stream.
``long`` value
Value to write
Write a signed short (Int16) as a ZigZag encoded varint to the stream.
``short`` value
Value to write
Write an unsigned short (UInt16) as a varint to the stream.
``ushort`` value
Value to write
Write a two-byte character as a varint to the stream.
``Char`` c
Value to write
Write a signed int (Int32) as a ZigZag encoded varint to the stream.
``int`` value
Value to write
Write an unsigned int (UInt32) as a varint to the stream.
``uint`` value
Value to write
Write a signed long (Int64) as a ZigZag encoded varint to the stream.
``long`` value
Value to write
Write an unsigned long (UInt64) as a varint to the stream.
``ulong`` value
Value to write
Write a byte to the stream.
``byte`` value
Value to write
Writes a string
``string`` s
The string to write
``bool`` oneByteChars
Wheter or not to use one byte per character. This will only allow ASCII
Writes a string in a packed format
``string`` s
Writes the diff between two strings
``string`` write
The new array
``string`` compare
The previous array to use for diff
``bool`` oneByteChars
Wheter or not to use single byte chars. This will only allow ASCII characters
Writes the diff between two strings in a packed format
``string`` write
The new string
``string`` compare
The previous string to use for diff
Writes a byte array
``byte[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two byte arrays
``byte[]`` write
The new array
``byte[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a short array
``short[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two short arrays
``short[]`` write
The new array
``short[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a ushort array
``ushort[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two ushort arrays
``ushort[]`` write
The new array
``ushort[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a char array
``Char[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two char arrays
``Char[]`` write
The new array
``Char[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a int array
``int[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two int arrays
``int[]`` write
The new array
``int[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a uint array
``uint[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two uint arrays
``uint[]`` write
The new array
``uint[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a long array
``long[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two long arrays
``long[]`` write
The new array
``long[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a ulong array
``ulong[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two ulong arrays
``ulong[]`` write
The new array
``ulong[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a float array
``float[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two float arrays
``float[]`` write
The new array
``float[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a double array
``double[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two double arrays
``double[]`` write
The new array
``double[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes an array in a packed format
``Array`` a
The array to write
``long`` count
The amount of elements to write
Writes the diff between two arrays in a packed format
``Array`` write
The new array
``Array`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a short array in a packed format
``short[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two short arrays in a packed format
``short[]`` write
The new array
``short[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a ushort array in a packed format
``ushort[]`` b
The array to write
``long`` count
The amount of elements to write
public ``void`` WriteUShortArrayPackedDiff(``ushort[]`` write, ``ushort[]`` compare, ``long`` count);
Writes the diff between two ushort arrays in a packed format
``ushort[]`` write
The new array
``ushort[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a char array in a packed format
``Char[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two char arrays in a packed format
``Char[]`` write
The new array
``Char[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a int array in a packed format
``int[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two int arrays
``int[]`` write
The new array
``int[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a uint array in a packed format
``uint[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two uing arrays in a packed format
``uint[]`` write
The new array
``uint[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a long array in a packed format
``long[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two long arrays in a packed format
``long[]`` write
The new array
``long[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a ulong array in a packed format
``ulong[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two ulong arrays in a packed format
``ulong[]`` write
The new array
``ulong[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a float array in a packed format
``float[]`` b
The array to write
``long`` count
The amount of elements to write
Writes the diff between two float arrays in a packed format
``float[]`` write
The new array
``float[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write
Writes a double array in a packed format
``double[]`` b
The array to write
``long`` count
The amount of elements to write
public ``void`` WriteDoubleArrayPackedDiff(``double[]`` write, ``double[]`` compare, ``long`` count);
Writes the diff between two double arrays in a packed format
``double[]`` write
The new array
``double[]`` compare
The previous array to use for diff
``long`` count
The amount of elements to write