public static void Write(FABMessageWatcher messageWatcher, uint value, int offset) { lock (messageWatcher.syncRoot) { if (!messageWatcher.InitializedIO) { messageWatcher.InitIO(); } if (offset > messageWatcher.IO_write_index) { messageWatcher.IO_write_index = offset; } messageWatcher.data.Write(value, ref messageWatcher.IO_write_index); } }
public FABMessage(OpCode op) { this.Watcher = new FABMessageWatcher(); this.Watcher.SetOpCode(op); }
public FABMessage(byte[] data) { this.Watcher = new FABMessageWatcher(data); }
public FABMessage(int length = Constants.MessageFileMaxSize) { this.Watcher = new FABMessageWatcher(length); }