Wombat.MamaMsg.getVectorI16 C# (CSharp) Method

getVectorI16() public method

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

            return ret;
        }

Same methods

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