public ByteBuf GetBuffer() { IntPtr memPtr = GetMemorySegment(); UnmanagedByteBuf1 byteBuf = GetWrapper(); byteBuf.Attach(memPtr, _bufDefaultSize); return(byteBuf); }
public void ReleaseWrapper(UnmanagedByteBuf1 wrapper) { _wrappers.Enqueue(wrapper); }