Wombat.MamaMsg.tryI64Impl C# (CSharp) Method

tryI64Impl() private method

private tryI64Impl ( string name, ushort fid, long &result, bool throwOnError ) : bool
name string
fid ushort
result long
throwOnError bool
return bool
        private bool tryI64Impl(
			string name,
			ushort fid,
			ref long result,
			bool throwOnError)
        {
            EnsurePeerCreated();
            long ret = 0;
            int code = NativeMethods.mamaMsg_getI64(nativeHandle, name, fid, ref ret);
            if ((MamaStatus.mamaStatus)code != MamaStatus.mamaStatus.MAMA_STATUS_OK)
            {
                if (throwOnError)
                {
                    CheckResultCode(code);
                }
                else
                {
                    return false;
                }
            }
            result = ret;
            return true;
        }
MamaMsg