Exemple #1
0
 public void Write(long pos, byte[] buf)
 {
     if (Listener != null)
     {
         Listener.OnWrite(pos, buf.Length);
     }
 }
Exemple #2
0
 /// <summary>
 /// Write method
 /// </summary>
 /// <param name="pos">Zero-based position</param>
 /// <param name="buf">Buffer to write to the stream. The entire buffer is written</param>
 public void Write(long pos, byte[] buf)
 {
     stream.Position = pos + offset;
     stream.Write(buf, 0, buf.Length);
     if (Listener != null)
     {
         Listener.OnWrite(pos, buf.Length);
     }
 }