static int stringSize(int x)
    {
        for (int i = 0;; i++)
        {
            if (x <= sizeTable[i])
                return i + 1;
        }
    }
From {@link java.lang.Integer#toString(int)}
protostuff-api/src/main/java/io/protostuff/StringSerializer.java