示例#1
0
        public static int l_asetSize(this L_ASet s)
        {
            if (null == s)
            {
                throw new ArgumentNullException("s cannot be null");
            }

            return(Native.DllImports.l_amapSize((HandleRef)s));
        }
示例#2
0
        public static void l_asetDelete(this L_ASet s, Rb_Type key)
        {
            if (null == s ||
                null == key)
            {
                throw new ArgumentNullException("m, key cannot be null.");
            }

            Native.DllImports.l_asetDelete((HandleRef)s, (HandleRef)key);
        }
示例#3
0
        public static void l_asetDestroy(this L_ASet ps)
        {
            if (null == ps)
            {
                throw new ArgumentNullException("ps cannot be null");
            }

            var pointer = (IntPtr)ps;

            Native.DllImports.l_asetDestroy(ref pointer);
        }
示例#4
0
        public static L_ASet_Node l_asetGetLast(this L_ASet s)
        {
            if (null == s)
            {
                throw new ArgumentNullException("s cannot be null.");
            }

            var pointer = Native.DllImports.l_asetGetLast((HandleRef)s);

            if (IntPtr.Zero == pointer)
            {
                return(null);
            }
            else
            {
                return(new L_ASet_Node(pointer));
            }
        }
示例#5
0
        public static Rb_Type l_asetFind(this L_ASet s, Rb_Type key)
        {
            if (null == s ||
                null == key)
            {
                throw new ArgumentNullException("s, key cannot be null.");
            }

            var pointer = Native.DllImports.l_asetFind((HandleRef)s, (HandleRef)key);

            if (IntPtr.Zero == pointer)
            {
                return(null);
            }
            else
            {
                return(new Rb_Type(pointer));
            }
        }