Wombat.MamaMsg.tryI16 C# (CSharp) Method

tryI16() public method

Try to get a I16, signed 16 bit integer, field.
public tryI16 ( string name, ushort fid, short &result ) : bool
name string
fid ushort
result short
return bool
        public bool tryI16(
			string name,
			ushort fid,
			ref short result)
        {
            EnsurePeerCreated();
            short val = 0;
            int code = NativeMethods.mamaMsg_getI16(nativeHandle, name, fid,ref val);
            if (CheckResultCodeIgnoreNotFound(code) != MamaStatus.mamaStatus.MAMA_STATUS_OK)
            {
                return false;
            }
            result = val;
            return true;
        }

Same methods

MamaMsg::tryI16 ( Wombat.MamaFieldDescriptor descriptor, short &result ) : bool
MamaMsg