Example #1
0
 public ByteBuffer(byte[] buffer, int pos)
 {
     _buffer  = new ByteArrayAllocator(buffer);
     Position = pos;
 }
Example #2
0
 public ByteBuffer(ByteBufferAllocator allocator, int position)
 {
     _buffer  = allocator;
     Position = position;
 }
Example #3
0
 public void Clear()
 {
     _buffer = null;
 }
Example #4
0
 public ByteBuffer(IntPtr pointer, int length, int pos, System.Action <IntPtr> free)
 {
     _buffer = new ByteArrayAllocator(pointer, length, free);
     _pos    = pos;
 }
Example #5
0
 public void Reuse(ByteBufferAllocator allocator, int position)
 {
     _buffer = allocator;
     _pos    = position;
 }
Example #6
0
 public ByteBuffer(ByteBufferAllocator allocator, int position)
 {
     Reuse(allocator, position);
 }