Wombat.MamaMsg.tryVectorF32 C# (CSharp) Method

tryVectorF32() public method

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

            result = val;
            return true;
        }

Same methods

MamaMsg::tryVectorF32 ( Wombat.MamaFieldDescriptor descriptor, float &result ) : bool
MamaMsg