Wombat.MamaMsg.tryVectorI32 C# (CSharp) Method

tryVectorI32() public method

Try to get a vector of signed 32 bit integers.
public tryVectorI32 ( string name, ushort fid, int &result ) : bool
name string
fid ushort
result int
return bool
        public bool tryVectorI32(
			string name, 
			ushort fid,
			ref int[] result)
        {
            EnsurePeerCreated();
            IntPtr array = IntPtr.Zero;
            uint size = 0;
            int code = NativeMethods.mamaMsg_getVectorI32(nativeHandle, name, fid,ref array, ref size);
            if (CheckResultCodeIgnoreNotFound(code) != MamaStatus.mamaStatus.MAMA_STATUS_OK)
            {
                return false;
            }
            int[] val = new int[size];
            Marshal.Copy(array, val, 0, (int)size);

            result = val;
            return true;
        }

Same methods

MamaMsg::tryVectorI32 ( Wombat.MamaFieldDescriptor descriptor, int &result ) : bool
MamaMsg