Example #1
0
 public ByteBuffer(byte[] buffer, int pos)
 {
     _buffer = new ByteArrayAllocator(buffer);
     _pos    = pos;
 }
Example #2
0
        private int _pos;  // Must track start of the buffer.

        public ByteBuffer(ByteBufferAllocator allocator, int position)
        {
            _buffer = allocator;
            _pos    = position;
        }