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