Click or drag to resize

BitWriter Class

[This is preliminary documentation and is subject to change.]

A BinaryWriter that can do bit wise manipulation when backed by a BitStream
Inheritance Hierarchy
SystemObject
  MLAPI.SerializationBitWriter

Namespace:  MLAPI.Serialization
Assembly:  MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class BitWriter
Request Example View Source

The BitWriter type exposes the following members.

Constructors
  NameDescription
Public methodBitWriter
Creates a new BitWriter backed by a given stream
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodWriteArrayPacked
Writes an array in a packed format
Public methodWriteArrayPackedDiff
Writes the diff between two arrays in a packed format
Public methodWriteBit
Writes a single bit
Public methodWriteBits(Byte, Int32)
Write bits to stream.
Public methodWriteBits(UInt64, Int32)
Write s certain amount of bits to the stream.
Public methodWriteBool
Writes a bool as a single bit
Public methodWriteByte
Write a byte to the stream.
Public methodWriteByteArray
Writes a byte array
Public methodWriteByteArrayDiff
Writes the diff between two byte arrays
Public methodWriteChar
Write a single character to the stream.
Public methodWriteCharArray
Writes a char array
Public methodWriteCharArrayDiff
Writes the diff between two char arrays
Public methodWriteCharArrayPacked
Writes a char array in a packed format
Public methodWriteCharArrayPackedDiff
Writes the diff between two char arrays in a packed format
Public methodWriteCharPacked
Write a two-byte character as a varint to the stream.
Public methodWriteColor
Convenience method that writes four non-varint floats from the color to the stream
Public methodWriteColor32
Convenience method that writes four non-varint floats from the color to the stream
Public methodWriteColorPacked
Convenience method that writes four varint floats from the color to the stream
Public methodWriteDouble
Write double-precision floating point value to the stream
Public methodWriteDoubleArray
Writes a double array
Public methodWriteDoubleArrayDiff
Writes the diff between two double arrays
Public methodWriteDoubleArrayPacked
Writes a double array in a packed format
Public methodWriteDoubleArrayPackedDiff
Writes the diff between two double arrays in a packed format
Public methodWriteDoublePacked
Write double-precision floating point value to the stream as a varint
Public methodWriteFloatArray
Writes a float array
Public methodWriteFloatArrayDiff
Writes the diff between two float arrays
Public methodWriteFloatArrayPacked
Writes a float array in a packed format
Public methodWriteFloatArrayPackedDiff
Writes the diff between two float arrays in a packed format
Public methodWriteInt16
Write a signed short (Int16) to the stream.
Public methodWriteInt16Packed
Write a signed short (Int16) as a ZigZag encoded varint to the stream.
Public methodWriteInt32
Write a signed int (Int32) to the stream.
Public methodWriteInt32Packed
Write a signed int (Int32) as a ZigZag encoded varint to the stream.
Public methodWriteInt64
Write a signed long (Int64) to the stream.
Public methodWriteInt64Packed
Write a signed long (Int64) as a ZigZag encoded varint to the stream.
Public methodWriteIntArray
Writes a int array
Public methodWriteIntArrayDiff
Writes the diff between two int arrays
Public methodWriteIntArrayPacked
Writes a int array in a packed format
Public methodWriteIntArrayPackedDiff
Writes the diff between two int arrays
Public methodWriteLongArray
Writes a long array
Public methodWriteLongArrayDiff
Writes the diff between two long arrays
Public methodWriteLongArrayPacked
Writes a long array in a packed format
Public methodWriteLongArrayPackedDiff
Writes the diff between two long arrays in a packed format
Public methodWriteNibble(Byte)
Write the lower half (lower nibble) of a byte.
Public methodWriteNibble(Byte, Boolean)
Write either the upper or lower nibble of a byte to the stream.
Public methodWriteObjectPacked
Writes a boxed object in a packed format
Public methodWritePadBits
Writes pad bits to make the underlying stream aligned
Public methodWriteRangedDouble
Write a double-precision floating point value to the stream. The value is between (inclusive) the minValue and maxValue.
Public methodWriteRangedSingle
Write a single-precision floating point value to the stream. The value is between (inclusive) the minValue and maxValue.
Public methodWriteRay
Convenience method that writes two non-packed Vector3 from the ray to the stream
Public methodWriteRayPacked
Convenience method that writes two packed Vector3 from the ray to the stream
Public methodWriteRotation
Write a rotation to the stream.
Public methodWriteSByte
Write a signed byte to the stream.
Public methodWriteShortArray
Writes a short array
Public methodWriteShortArrayDiff
Writes the diff between two short arrays
Public methodWriteShortArrayPacked
Writes a short array in a packed format
Public methodWriteShortArrayPackedDiff
Writes the diff between two short arrays in a packed format
Public methodWriteSingle
Write single-precision floating point value to the stream
Public methodWriteSinglePacked
Write single-precision floating point value to the stream as a varint
Public methodWriteString
Writes a string
Public methodWriteStringDiff
Writes the diff between two strings
Public methodWriteStringPacked
Writes a string in a packed format
Public methodWriteStringPackedDiff
Writes the diff between two strings in a packed format
Public methodWriteUInt16
Write an unsigned short (UInt16) to the stream.
Public methodWriteUInt16Packed
Write an unsigned short (UInt16) as a varint to the stream.
Public methodWriteUInt32
Write an unsigned int (UInt32) to the stream.
Public methodWriteUInt32Packed
Write an unsigned int (UInt32) as a varint to the stream.
Public methodWriteUInt64
Write an unsigned long (UInt64) to the stream.
Public methodWriteUInt64Packed
Write an unsigned long (UInt64) as a varint to the stream.
Public methodWriteUIntArray
Writes a uint array
Public methodWriteUIntArrayDiff
Writes the diff between two uint arrays
Public methodWriteUIntArrayPacked
Writes a uint array in a packed format
Public methodWriteUIntArrayPackedDiff
Writes the diff between two uing arrays in a packed format
Public methodWriteULongArray
Writes a ulong array
Public methodWriteULongArrayDiff
Writes the diff between two ulong arrays
Public methodWriteULongArrayPacked
Writes a ulong array in a packed format
Public methodWriteULongArrayPackedDiff
Writes the diff between two ulong arrays in a packed format
Public methodWriteUShortArray
Writes a ushort array
Public methodWriteUShortArrayDiff
Writes the diff between two ushort arrays
Public methodWriteUShortArrayPacked
Writes a ushort array in a packed format
Public methodWriteUShortArrayPackedDiff
Writes the diff between two ushort arrays in a packed format
Public methodWriteVector2
Convenience method that writes two non-varint floats from the vector to the stream
Public methodWriteVector2Packed
Convenience method that writes two varint floats from the vector to the stream
Public methodWriteVector3
Convenience method that writes three non-varint floats from the vector to the stream
Public methodWriteVector3Packed
Convenience method that writes three varint floats from the vector to the stream
Public methodWriteVector4
Convenience method that writes four non-varint floats from the vector to the stream
Public methodWriteVector4Packed
Convenience method that writes four varint floats from the vector to the stream
Top
See Also