Wombat.MamaMsg.tryVectorI16 C# (CSharp) Method

tryVectorI16() public method

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

            result = val;
            return true;
        }

Same methods

MamaMsg::tryVectorI16 ( Wombat.MamaFieldDescriptor descriptor, short &result ) : bool
MamaMsg