예제 #1
0
        public MemoryBuffer Duplicate()
        {
            MemoryBuffer memoryBuffer = new MemoryBuffer(this.Capacity);

            memoryBuffer.Append(this.Buffer, this.Capacity);
            memoryBuffer.Position = this.Position;
            return(memoryBuffer);
        }
예제 #2
0
            public MemoryBuffer Duplicate()
            {
                var mb = new MemoryBuffer(Capacity);

                mb.Append(Buffer, Capacity);
                mb.Position = Position;

                return(mb);
            }