/// <summary> /// Reads bytes /// </summary> /// <param name="self">Stream</param> /// <param name="offset">Offset</param> /// <param name="size">Size of data to read</param> /// <returns></returns> public static byte[] ReadBytes(this IHexStream self, ulong offset, int size) { var data = new byte[size]; self.Read(offset, data, 0, data.Length); return(data); }
public void Read(ulong offset, byte[] array, long index, int count) => stream.Read(offset, array, index, count);