private static int nextKeyIndex(int i, int len)
        {
            return (i + 2 < len ? i + 2 : 0);
        }
Circularly traverses table of size len.
protostuff-core/src/main/java/io/protostuff/GraphProtostuffOutput.java