mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Created BitStream#readU63(int)
This commit is contained in:
parent
55d1f18463
commit
d1ee547530
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user