Created BitStream#readU63(int)

This commit is contained in:
Collin Smith 2020-08-03 16:11:59 -07:00
parent 55d1f18463
commit d1ee547530

View File

@ -150,6 +150,11 @@ public class BitStream {
return (int) readUnsigned(bits);
}
public long readU63(int bits) {
assert bits < Long.SIZE : "only 63 bits can fit into long and be unsigned. bits: " + bits;
return readUnsigned(bits);
}
public int readU8(int bits) {
assert bits <= Byte.SIZE;
return (int) readUnsigned(bits);