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