Exemplo n.º 1
0
        public static bool TryInsert(this FixedSizeNode <SnapUInt32, SnapUInt32> tree, uint key, uint value)
        {
            SnapUInt32 k  = new SnapUInt32(key);
            SnapUInt32 v  = new SnapUInt32(value);
            bool       rv = tree.TryInsert(k, v);

            return(rv);
        }
Exemplo n.º 2
0
        public static void Insert(this FixedSizeNode <SnapUInt32, SnapUInt32> tree, uint key, uint value)
        {
            SnapUInt32 k = new SnapUInt32(key);
            SnapUInt32 v = new SnapUInt32(value);

            if (!tree.TryInsert(k, v))
            {
                throw new Exception();
            }
        }