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); }
internal void Write(byte[] buffer, ref int offset) { ByteArrayExtensions.BlockCopy(this.Buffer, this.StartOffset, buffer, offset, this.Length); offset += this.Length; }
public void CopyTo(byte[] array, int arrayIndex) { ByteArrayExtensions.BlockCopy(this.Buffer, 0, array, arrayIndex, this.Length); }