public ByteBuffer(byte[] buffer, int pos) { _buffer = new ByteArrayAllocator(buffer); _pos = pos; }
private int _pos; // Must track start of the buffer. public ByteBuffer(ByteBufferAllocator allocator, int position) { _buffer = allocator; _pos = position; }