コード例 #1
0
ファイル: Map.cs プロジェクト: bclgenki/tvn-cosine
        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
ファイル: Map.cs プロジェクト: bclgenki/tvn-cosine
        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
ファイル: Map.cs プロジェクト: bclgenki/tvn-cosine
        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
ファイル: Map.cs プロジェクト: bclgenki/tvn-cosine
        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
ファイル: Map.cs プロジェクト: bclgenki/tvn-cosine
        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));
            }
        }