Wombat.MamaMsg.getVectorU16 C# (CSharp) Method

getVectorU16() public method

Get a vector of unsigned 16 bit integers.
public getVectorU16 ( string name, ushort fid ) : ushort[]
name string
fid ushort
return ushort[]
        public ushort[] getVectorU16(
			string name, 
			ushort fid)
        {
            EnsurePeerCreated();
            IntPtr array = IntPtr.Zero;
            uint size = 0;
            int code = NativeMethods.mamaMsg_getVectorU16(nativeHandle, name, fid,ref array, ref size);
            CheckResultCode(code);
            short[] sRet = new short[size];
            ushort[] ret = new ushort[size];
            Marshal.Copy(array, sRet, 0, (int)size);

            for (int i = 0; i < ret.Length; i++)
            {
                ret[i] = (ushort)sRet[i];
            }

            return ret;
        }

Same methods

MamaMsg::getVectorU16 ( Wombat.MamaFieldDescriptor descriptor ) : ushort[]
MamaMsg::getVectorU16 ( Wombat.MamaFieldDescriptor descriptor, ushort valueIfMissing ) : ushort[]
MamaMsg::getVectorU16 ( string name, ushort fid, ushort valueIfMissing ) : ushort[]
MamaMsg