/// <summary> /// /// </summary> protected AbstractIoBuffer(AbstractIoBuffer parent, Int32 mark, Int32 pos, Int32 lim, Int32 cap) : base(mark, pos, lim, cap) { _allocator = parent._allocator; _recapacityAllowed = false; _derived = true; _minimumCapacity = parent._minimumCapacity; }
/// <summary> /// /// </summary> protected AbstractIoBuffer(IoBufferAllocator allocator, Int32 mark, Int32 pos, Int32 lim, Int32 cap) : base(mark, pos, lim, cap) { _allocator = allocator; _recapacityAllowed = true; _derived = false; _minimumCapacity = cap; }
public ByteBuffer(IoBufferAllocator allocator, Byte[] buf, Int32 off, Int32 len) : this(allocator, -1, off, off + len, buf.Length, buf, 0) { }
public ByteBuffer(IoBufferAllocator allocator, Int32 cap, Int32 lim) : this(allocator, -1, 0, lim, cap, new Byte[cap], 0) { }
/// <summary> /// Creates a new buffer with the given mark, position, limit, capacity, /// backing array, and array offset /// </summary> public ByteBuffer(IoBufferAllocator allocator, Int32 mark, Int32 pos, Int32 lim, Int32 cap, Byte[] hb, Int32 offset) : base(allocator, mark, pos, lim, cap) { this._hb = hb; this._offset = offset; }
ByteBufferR(IoBufferAllocator allocator, Int32 cap, Int32 lim) : base(allocator, cap, lim) { _readOnly = true; }
ByteBufferR(IoBufferAllocator allocator, Byte[] buf, Int32 off, Int32 len) : base(allocator, buf, off, len) { _readOnly = true; }
/// <summary> /// </summary> public SocketAsyncEventArgsBuffer(IoBufferAllocator allocator, Byte[] buffer, Int32 offset, Int32 count) : base(allocator, -1, 0, count, buffer.Length) { _socketAsyncEventArgs = new SocketAsyncEventArgs(); _socketAsyncEventArgs.SetBuffer(buffer, offset, count); }
public SocketAsyncEventArgsBuffer(IoBufferAllocator allocator, Int32 cap, Int32 lim) : this(allocator, new Byte[cap], 0, lim) { }
public SocketAsyncEventArgsBuffer(IoBufferAllocator allocator, Byte[] buffer, Int32 offset, Int32 count) : base(allocator, -1, 0, count, buffer.Length) { _socketAsyncEventArgs = new SocketAsyncEventArgs(); _socketAsyncEventArgs.SetBuffer(buffer, offset, count); }
/// <summary> /// </summary> public SocketAsyncEventArgsBuffer(IoBufferAllocator allocator, Int32 cap, Int32 lim) : this(allocator, new Byte[cap], 0, lim) { }