java.lang.Object
com.ibm.dtfj.phd.util.BitStream
This class provides a mechanism for writing numbers in a bit stream.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
compact()
int
int
void
nextWord
(boolean write) int
readIntBits
(int len) int
readIntBits
(int len, int wordOff, int bitOff) long
readLongBits
(int len) void
rewind()
void
setOffset
(int offset) void
writeIntBits
(int n, int len) void
writeIntBits
(int n, int len, int wordOff, int bitOff) void
writeLongBits
(long n, int len)
-
Constructor Details
-
BitStream
public BitStream()
-
-
Method Details
-
rewind
public void rewind() -
clear
public void clear() -
writeLongBits
public void writeLongBits(long n, int len) -
writeIntBits
public void writeIntBits(int n, int len) -
writeIntBits
public void writeIntBits(int n, int len, int wordOff, int bitOff) -
nextWord
public void nextWord(boolean write) -
compact
public void compact() -
getOffset
public int getOffset() -
setOffset
public void setOffset(int offset) -
readIntBits
public int readIntBits(int len) -
readLongBits
public long readLongBits(int len) -
readIntBits
public int readIntBits(int len, int wordOff, int bitOff) -
memoryUsage
public int memoryUsage()
-