public static int Hash(IntPtr l)
    {
        int result;

        try
        {
            CountMinSketch countMinSketch = (CountMinSketch)LuaObject.checkSelf(l);
            int            index;
            LuaObject.checkType(l, 2, out index);
            ulong value;
            LuaObject.checkType(l, 3, out value);
            ulong o = countMinSketch.Hash(index, value);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }