OpenMetaverse Protocol Library Developers API Documentation
BitPack Class
NamespacesOpenMetaverseBitPack
Wrapper around a byte array that allows bit to be packed and unpacked one at a time or by a variable amount. Useful for very tightly packed data like LayerData packets
Declaration Syntax
C#
public 
class 
BitPack
Members
All Members Constructors Methods Properties Fields



Icon Member Description
BitPack( array< Byte > [] () [] [] , Int32)
Default constructor, initialize the bit packer / bit unpacker with a byte array and starting position

BitPos

BytePos

Data

PackBit(Boolean)
Pack a single bit in to the data

PackBits(Int32, Int32)
Pack part or all of an integer in to the data

PackBits(UInt32, Int32)
Pack part or all of an unsigned integer in to the data

PackColor(Color4)

PackFixed(Single, Boolean, Int32, Int32)

PackFloat(Single)
Pack a floating point value in to the data

PackUUID(UUID)

UnpackBits(Int32)
Unpack a variable number of bits from the data in to integer format

UnpackByte () () () ()
UnpackFixed(Boolean, Int32, Int32)
UnpackFloat () () () ()
Unpacking a floating point value from the data

UnpackInt () () () ()
Unpack a 32-bit signed integer

UnpackShort () () () ()
Unpack a 16-bit signed integer

UnpackString(Int32)
UnpackUBits(Int32)
Unpack a variable number of bits from the data in to unsigned integer format

UnpackUInt () () () ()
Unpack a 32-bit unsigned integer

UnpackUShort () () () ()
Unpack a 16-bit unsigned integer

UnpackUUID () () () ()
Inheritance Hierarchy
Object
BitPack

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)