text: public static int formatBase10(final byte[] b, int o, int value) {if (value == 0) {b[--o] = '0';return o;}final boolean isneg = value < 0;if (isneg)value = -value;while (value != 0) {b[--o] = base10byte[value % 10];value /= 10;}if (isneg)b[--o] = '-';return o;}