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