mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Created static factory method for constructing a BitInput from a byte array
This commit is contained in:
parent
a244fbd09d
commit
99f0c11064
@ -3,6 +3,10 @@ package com.riiablo.io.nio;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
public class BitInput {
|
||||
public static BitInput wrap(byte[] bytes) {
|
||||
return ByteInput.wrap(bytes).unalign();
|
||||
}
|
||||
|
||||
private static final int MAX_ULONG_BITS = Long.SIZE - 1;
|
||||
private static final int MAX_UINT_BITS = Integer.SIZE - 1;
|
||||
private static final int MAX_USHORT_BITS = Short.SIZE - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user