BitOutputBuffer Class Members
In This Topic
The following tables list the members exposed by BitOutputBuffer.
Public Constructors
Public Fields
| Name | Description |
| SZ_INCR | The increment size for the buffer, 16 bytes. This is the number of bytes that are added to the buffer each time it is needed to enlarge it. |
| SZ_INIT | The initial size for the buffer, 32 bytes. |
Top
Public Properties
Public Methods
| Name | Description |
| reset | Resets the buffer. This rewinds the current position to the start of the buffer and sets all tha data to 0. Note that no new buffer is allocated, so this will affect any data that was returned by the 'getBuffer()' method. |
| toByteArray | Returns the byte buffer data in a new array. This is a copy of the internal byte buffer. If 'data' is non-null it is used to return the data. This array should be large enough to contain all the data, otherwise a IndexOutOfBoundsException is thrown by the Java system. The number of elements returned is what 'getLength()' returns. |
| ToString | Prints information about this object for debugging purposes |
| writeBit | |
| writeBits | |
Top
See Also