public override void WriteByte(byte value)
 {
     OnDataWritten?.Invoke(this, new DataAccessEventArgs {
         DataWritten = 1
     });
     base.WriteByte(value);
 }
 public override void Write(byte[] buffer, int offset, int count)
 {
     OnDataWritten?.Invoke(this, new DataAccessEventArgs {
         DataWritten = count
     });
     base.Write(buffer, offset, count);
 }