Wombat.MamaMsg.getVectorBool C# (CSharp) Method

getVectorBool() public method

Get a vector of booleans.
public getVectorBool ( string name, ushort fid ) : bool[]
name string
fid ushort
return bool[]
        public bool[] getVectorBool(
			string name, 
			ushort fid)
        {
            EnsurePeerCreated();
            IntPtr array = IntPtr.Zero;
            uint size = 0;
            int code = NativeMethods.mamaMsg_getVectorBool(nativeHandle, name, fid,ref array, ref size);
            CheckResultCode(code);

            byte[] bRet = new byte[size];
            bool[] ret = new bool[size];
            Marshal.Copy(array, bRet, 0, (int)size);

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

            return ret;
        }

Same methods

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