Wombat.MamaMsg.addU8 C# (CSharp) Method

addU8() public method

Add a new 8 bit unsigned int field.
public addU8 ( string name, ushort fid, byte val ) : void
name string
fid ushort
val byte
return void
        public void addU8(
			string name,
			ushort fid,
			byte val)
        {
            EnsurePeerCreated();
            int code = NativeMethods.mamaMsg_addU8(nativeHandle, name, fid,val);
            CheckResultCode(code);
        }

Usage Example

 public void addMamaHeaderFields(
                     MamaMsg msg,
                     byte msgType,
                     byte msgStatus,
                     uint seqNum)
 {
     msg.addU8(null, 1, msgType);
     msg.addU8(null, 2, msgStatus);
     msg.addU32(null, 10, seqNum);
     msg.addU64(null, 20, 1);
 }
MamaMsg