Wombat.MamaMsg.tryVectorU64 C# (CSharp) Method

tryVectorU64() public method

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

Same methods

MamaMsg::tryVectorU64 ( MamaFieldDescriptor descriptor, ulong &result ) : bool
MamaMsg