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