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