public override ByteBuffer Slice() { var buffer = new MemoryMappedFileByteBuffer(accessor, Remaining, offset + position); buffer.order = this.order; return(buffer); }
public override ByteBuffer Duplicate() { var buffer = new MemoryMappedFileByteBuffer(accessor, Capacity, offset); buffer.mark = this.mark; buffer.position = this.Position; buffer.limit = this.Limit; return(buffer); }