public byte[] Read(long address, int length) { if (length == 0) { } byte[] result = new byte[length]; BackingStream.Seek(address, SeekOrigin.Begin); BackingStream.Read(result, 0, length); return(result); }
public void Write(long address, byte[] bytes) { BackingStream.Seek(address, SeekOrigin.Begin); BackingStream.Write(bytes, 0, (int)bytes.Length); }