public static byte[] ReadBytes(this byte[] buffer, int offset, int length)
 {
     byte[] destination = new byte[length];
     ByteArrayExtensions.BlockCopy(buffer, offset, destination, 0, length);
     return(destination);
 }
Пример #2
0
 internal void Write(byte[] buffer, ref int offset)
 {
     ByteArrayExtensions.BlockCopy(this.Buffer, this.StartOffset, buffer, offset, this.Length);
     offset += this.Length;
 }
Пример #3
0
 public void CopyTo(byte[] array, int arrayIndex)
 {
     ByteArrayExtensions.BlockCopy(this.Buffer, 0, array, arrayIndex, this.Length);
 }