Example #1
0
        public override unsafe IByteBuffer GetBytes(int index, Stream output, int length)
        {
            this.CheckIndex(index, length);

            fixed(byte *addr = &this.Addr(index))
            UnsafeByteBufferUtil.GetBytes(this, addr, index, output, length);

            return(this);
        }
 public override IByteBuffer GetBytes(int index, Stream output, int length)
 {
     UnsafeByteBufferUtil.GetBytes(this, this.Addr(index), index, output, length);
     return(this);
 }
 public override IByteBuffer GetBytes(int index, byte[] dst, int dstIndex, int length)
 {
     this.CheckIndex(index, length);
     UnsafeByteBufferUtil.GetBytes(this, this.Addr(index), index, dst, dstIndex, length);
     return(this);
 }