Constructor and Description |
---|
BitPacket() |
BitPacket(int data,
int bits) |
Modifier and Type | Method and Description |
---|---|
BitPacket |
clone() |
boolean |
equals(Object o) |
int |
read(int nBits)
Reads some bits from this packet, shifting the bits out of the buffer
|
String |
toString() |
void |
write(int data,
int nBits)
Writes some bits to this packet, increasing the number of bits stored
|
public int read(int nBits)
nBits
- to readpublic void write(int data, int nBits)
data
- to writenBits
- of dataCopyright © 2019. All rights reserved.