protected Releaser Rent(int capacity, out SocketMemory buffer) { var result = Rent(capacity, out ByteBuffer buf); buffer = buf.SocketMemory; return(result); }
public ByteBuffer(Memory <byte> memory, bool createSocketAsyncArgs) { Memory = memory; if (createSocketAsyncArgs) { socketMemory = new SocketMemory(Memory, new SocketAsyncEventArgs()); } }