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);
 }
 public override IByteBuffer GetBytes(int index, Stream output, int length)
 {
     UnsafeByteBufferUtil.GetBytes(this, this.Addr(index), index, output, length);
     return(this);
 }
 protected internal override int _GetIntLE(int index) => UnsafeByteBufferUtil.GetIntLE(this.Addr(index));
 protected internal override long _GetLongLE(int index) => UnsafeByteBufferUtil.GetLongLE(this.Addr(index));
 protected internal sealed override int _GetUnsignedMediumLE(int index)
 {
     fixed(byte *addr = &Addr(index))
     return(UnsafeByteBufferUtil.GetUnsignedMediumLE(addr));
 }
 protected internal sealed override void _SetLong(int index, long value) => UnsafeByteBufferUtil.SetLong(Addr(index), value);
 public override IByteBuffer Copy(int index, int length)
 {
     this.CheckIndex(index, length);
     return(UnsafeByteBufferUtil.Copy(this, this.Addr(index), index, length));
 }
 protected internal sealed override void _SetLongLE(int index, long value)
 {
     fixed(byte *addr = &Addr(index))
     UnsafeByteBufferUtil.SetLongLE(addr, value);
 }
 protected internal override void _SetLongLE(int index, long value) => UnsafeByteBufferUtil.SetLongLE(this.Addr(index), value);
 public override IByteBuffer SetBytes(int index, byte[] src, int srcIndex, int length)
 {
     this.CheckIndex(index, length);
     UnsafeByteBufferUtil.SetBytes(this, this.Addr(index), index, src, srcIndex, length);
     return(this);
 }
Ejemplo n.º 11
0
 protected internal sealed override long _GetLongLE(int index) => UnsafeByteBufferUtil.GetLongLE(Addr(index));
Ejemplo n.º 12
0
 protected internal sealed override int _GetIntLE(int index) => UnsafeByteBufferUtil.GetIntLE(Addr(index));
Ejemplo n.º 13
0
 protected internal sealed override short _GetShort(int index) => UnsafeByteBufferUtil.GetShort(Addr(index));
 protected internal override void _SetInt(int index, int value) => UnsafeByteBufferUtil.SetInt(this.Addr(index), value);
 public override IByteBuffer SetZero(int index, int length)
 {
     this.CheckIndex(index, length);
     UnsafeByteBufferUtil.SetZero(this.Addr(index), length);
     return(this);
 }
 protected internal sealed override void _SetMedium(int index, int value)
 {
     fixed(byte *addr = &Addr(index))
     UnsafeByteBufferUtil.SetMedium(addr, value);
 }
 protected internal override short _GetShort(int index) => UnsafeByteBufferUtil.GetShort(this.Addr(index));
 protected internal sealed override short _GetShortLE(int index)
 {
     fixed(byte *addr = &Addr(index))
     return(UnsafeByteBufferUtil.GetShortLE(addr));
 }
 protected internal override int _GetUnsignedMedium(int index) => UnsafeByteBufferUtil.GetUnsignedMedium(this.Addr(index));
 protected internal sealed override long _GetLong(int index)
 {
     fixed(byte *addr = &Addr(index))
     return(UnsafeByteBufferUtil.GetLong(addr));
 }
Ejemplo n.º 21
0
 protected internal sealed override void _SetIntLE(int index, int value) => UnsafeByteBufferUtil.SetIntLE(Addr(index), value);