Example #1
0
        private MemoryChunk AllocateMemoryChunk()
        {
            IMemoryOwner <byte> buffer = this.allocator.Allocate <byte>(this.chunkLength);

            return(new MemoryChunk
            {
                Buffer = buffer,
                Next = null,
                Length = buffer.Length()
            });
        }