コード例 #1
0
        public ByteBuf GetBuffer()
        {
            int    size;
            IntPtr dataPtr = GetDefaultDataIntPtr(out size);
            MemorySegmentByteBuffer byteBuf = WrapMemorySegment(dataPtr, 0 /* filledSize */);

            return(byteBuf);
        }
コード例 #2
0
        public MemorySegmentByteBuffer WrapMemorySegment(IntPtr dataPtr, int filledSize)
        {
            IntPtr memSegPtr = MemorySegment.GetMemSegPtrByDataPtr(dataPtr);

            MemorySegmentByteBuffer byteBuf = GetByteBufCore();

            byteBuf.Attach(memSegPtr);
            byteBuf.SetWrite(filledSize);

            return(byteBuf);
        }
コード例 #3
0
 internal void Release(MemorySegmentByteBuffer unmanagedByteBuf)
 {
 }