|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.vrml.export.compressors.BitUnpacker
UnPack a stream of integers of variables bits from a packed form. Loosely copied from Johnathon Blow's "Packing Integers" article.
| Constructor Summary | |
BitUnpacker(byte[] buffer)
Construct a bit unpacker. |
|
| Method Summary | |
long |
getNumBitsRemaining()
Get the number of bits remaining to be procesed. |
static void |
main(java.lang.String[] args)
Small test of unpack/pack routines. |
void |
reset(byte[] buffer)
Set this bit unpacker to a new value. |
int |
unpack(int num_bits)
Unpack a number of bits. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BitUnpacker(byte[] buffer)
buffer - The buffer to decode.| Method Detail |
public int unpack(int num_bits)
public void reset(byte[] buffer)
public long getNumBitsRemaining()
public static void main(java.lang.String[] args)
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||