public bool tryVectorU64(
string name,
ushort fid,
ref ulong[] result)
{
EnsurePeerCreated();
IntPtr array = IntPtr.Zero;
uint size = 0;
int code = NativeMethods.mamaMsg_getVectorU64(nativeHandle, name, fid,ref array, ref size);
if (CheckResultCodeIgnoreNotFound(code) != MamaStatus.mamaStatus.MAMA_STATUS_OK)
{
return false;
}
long[] lVal = new long[size];
ulong[] val = new ulong[size];
Marshal.Copy(array, lVal, 0, (int)size);
for (int i = 0; i < val.Length; i++)
{
val[i] = (ulong)lVal[i];
}
result = val;
return true;
}