Пример #1
0
        protected Releaser Rent(int capacity, out SocketMemory buffer)
        {
            var result = Rent(capacity, out ByteBuffer buf);

            buffer = buf.SocketMemory;
            return(result);
        }
Пример #2
0
 public ByteBuffer(Memory <byte> memory, bool createSocketAsyncArgs)
 {
     Memory = memory;
     if (createSocketAsyncArgs)
     {
         socketMemory = new SocketMemory(Memory, new SocketAsyncEventArgs());
     }
 }