public class BitBuffer extends Object
Constructor and Description |
---|
BitBuffer(ByteBuffer writeBuffer) |
Modifier and Type | Method and Description |
---|---|
int |
bitbuffer() |
int |
missingBitsInCurrentByte() |
void |
movePosition(int i) |
void |
putByte(byte byteToAdd) |
void |
putByte(byte byteToAdd,
int bits) |
void |
putInt(int i)
write out int value to the next 4 bytes of the buffer
|
void |
putInt(int i,
int bits) |
void |
putLong(long l,
int bits) |
public BitBuffer(ByteBuffer writeBuffer)
public int bitbuffer()
public int missingBitsInCurrentByte()
public void movePosition(int i)
public void putByte(byte byteToAdd)
public void putByte(byte byteToAdd, int bits)
public void putInt(int i)
i
- integer to writepublic void putInt(int i, int bits)
public void putLong(long l, int bits)
Copyright © 1996–2016 nom-tam-fits. All rights reserved.