Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public void Write(long address, byte[] bytes)
 {
     BackingStream.Seek(address, SeekOrigin.Begin);
     BackingStream.Write(bytes, 0, (int)bytes.Length);
 }