Wombat.MamaMsg.tryVectorU32 C# (CSharp) Method

tryVectorU32() public method

Try to get a vector of unsigned 32 bit integers.
public tryVectorU32 ( string name, ushort fid, uint &result ) : bool
name string
fid ushort
result uint
return bool
        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;
        }

Same methods

MamaMsg::tryVectorU32 ( MamaFieldDescriptor descriptor, uint &result ) : bool
MamaMsg