Wombat.MamaMsg.tryU16 C# (CSharp) Méthode

tryU16() public méthode

Try to get a U16, unsigned 16 bit integer, field.
public tryU16 ( string name, ushort fid, ushort &result ) : bool
name string
fid ushort
result ushort
Résultat bool
        public bool tryU16(
			string name,
			ushort fid,
			ref ushort result)
        {
            EnsurePeerCreated();
            ushort val = 0;
            int code = NativeMethods.mamaMsg_getU16(nativeHandle, name, fid,ref val);
            if (CheckResultCodeIgnoreNotFound(code) != MamaStatus.mamaStatus.MAMA_STATUS_OK)
            {
                return false;
            }
            result = val;
            return true;
        }

Same methods

MamaMsg::tryU16 ( Wombat.MamaFieldDescriptor descriptor, ushort &result ) : bool
MamaMsg