@Deprecated
    final static public void spacePad(StringBuffer sbuf, int length) {
        while (length >= 32) {
            sbuf.append(SPACES[5]);
            length -= 32;
        }

        for (int i = 4; i >= 0; i--) {
            if ((length & (1 << i)) != 0) {
                sbuf.append(SPACES[i]);
            }
        }
    }
Fast space padding method.

@param sbuf the buffer to pad
@param length the target size of the buffer after padding
slf4j-ext/src/main/java/org/slf4j/profiler/SpacePadder.java