PooledBitStream Class |
[This is preliminary documentation and is subject to change.]
Namespace: MLAPI.Serialization
The PooledBitStream type exposes the following members.
| Name | Description | |
|---|---|---|
| PooledBitStream | Initializes a new instance of the PooledBitStream class |
| Name | Description | |
|---|---|---|
| BitAligned |
Whether or not the current BitPosition is evenly divisible by 8. I.e. whether or not the BitPosition is at a byte boundary.
(Inherited from BitStream.) | |
| BitLength |
Length of data (in bits) that is considered to be written to the stream.
(Inherited from BitStream.) | |
| BitPosition |
Bit offset into the buffer that new data will be written to.
(Inherited from BitStream.) | |
| CanRead |
Whether or not data can be read from the stream.
(Inherited from BitStream.) | |
| CanSeek |
Whether or not seeking is supported by this stream. (Always true)
(Inherited from BitStream.) | |
| CanTimeout | (Inherited from Stream.) | |
| CanWrite |
Whether or not this stream can accept new data. NOTE: this will return true even if only fewer than 8 bits can be written!
(Inherited from BitStream.) | |
| Capacity |
Current buffer size. The buffer will not be resized (if possible) until Position is equal to Capacity and an attempt to write data is made.
(Inherited from BitStream.) | |
| GrowthFactor |
Factor by which buffer should grow when necessary.
(Inherited from BitStream.) | |
| Length |
The current length of data considered to be "written" to the buffer.
(Inherited from BitStream.) | |
| Position |
The index that will be written to when any call to write data is made to this stream.
(Inherited from BitStream.) | |
| ReadTimeout | (Inherited from Stream.) | |
| Resizable |
Whether or not the stream will grow the buffer to accomodate more data.
(Inherited from BitStream.) | |
| WriteTimeout | (Inherited from Stream.) |
| Name | Description | |
|---|---|---|
| BeginRead | (Inherited from Stream.) | |
| BeginWrite | (Inherited from Stream.) | |
| Close | (Inherited from Stream.) | |
| CopyFrom(Stream, Int32) |
Copy data from another stream
(Inherited from BitStream.) | |
| CopyFrom(BitStream, Int32, Boolean) |
Copys the bits from the provided BitStream
(Inherited from BitStream.) | |
| CopyUnreadFrom | (Inherited from BitStream.) | |
| CreateObjRef | (Inherited from MarshalByRefObject.) | |
| Dispose |
Returns the PooledBitStream into the static BitStreamPool
| |
| EndRead | (Inherited from Stream.) | |
| EndWrite | (Inherited from Stream.) | |
| Equals | (Inherited from Object.) | |
| Flush |
Flush stream. This does nothing since data is written directly to a byte buffer.
(Inherited from BitStream.) | |
| Get |
Gets a PooledBitStream from the static BitStreamPool
| |
| GetBuffer |
Get the internal buffer being written to by this stream.
(Inherited from BitStream.) | |
| GetHashCode | (Inherited from Object.) | |
| GetLifetimeService | (Inherited from MarshalByRefObject.) | |
| GetType | (Inherited from Object.) | |
| InitializeLifetimeService | (Inherited from MarshalByRefObject.) | |
| PeekByte |
Peeks a byte without advancing the position
(Inherited from BitStream.) | |
| Read |
Read a subset of the stream buffer and write the contents to the supplied buffer.
(Inherited from BitStream.) | |
| ReadBit |
Read a single bit from the stream.
(Inherited from BitStream.) | |
| ReadByte |
Read a byte from the buffer. This takes into account possible byte misalignment.
(Inherited from BitStream.) | |
| Seek |
Set position in stream to read from/write to.
(Inherited from BitStream.) | |
| SetLength |
Set length of data considered to be "written" to the stream.
(Inherited from BitStream.) | |
| ToArray |
Creates a copy of the internal buffer. This only contains the used bytes
(Inherited from BitStream.) | |
| ToString |
Returns hex encoded version of the buffer
(Inherited from BitStream.) | |
| Write(Byte) |
Write data from the given buffer to the internal stream buffer.
(Inherited from BitStream.) | |
| Write(Byte, Int32, Int32) |
Write data from the given buffer to the internal stream buffer.
(Inherited from BitStream.) | |
| WriteBit |
Write a single bit to the stream
(Inherited from BitStream.) | |
| WriteByte | (Inherited from Stream.) |