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;
}