public final class BitBuffer
extends java.lang.Object
| Constructor and Description |
|---|
BitBuffer(byte[] buffer)
Constructor from byte buffer.
|
BitBuffer(byte[] buffer,
long bitSize)
Constructor from byte buffer and bit size.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getBitSize()
Gets the number of bits stored in the bit buffer.
|
byte[] |
getBuffer()
Gets the underlying byte buffer.
|
int |
getByteSize()
Gets the number of bytes stored in the bit buffer.
|
int |
hashCode() |
public BitBuffer(byte[] buffer)
buffer - Byte buffer to construct from.public BitBuffer(byte[] buffer,
long bitSize)
throws java.lang.IllegalArgumentException
buffer - Byte buffer to construct from.bitSize - Number of bits stored in buffer to use.java.lang.IllegalArgumentException - If the number of bits is bigger than buffer size.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic byte[] getBuffer()
public long getBitSize()
public int getByteSize()
Last updated 2025-10-02 14:26:25