Lines Matching refs:buff_end

30 static int AppendChar(char **buff, const char *buff_end, char c) {
31 if (*buff < buff_end) {
41 static int AppendNumber(char **buff, const char *buff_end, u64 absolute_value,
53 result += AppendChar(buff, buff_end, '-');
71 result += AppendChar(buff, buff_end, c);
73 if (negative && !pad_with_zero) result += AppendChar(buff, buff_end, '-');
77 result += AppendChar(buff, buff_end, digit);
82 static int AppendUnsigned(char **buff, const char *buff_end, u64 num, u8 base,
85 return AppendNumber(buff, buff_end, num, base, minimal_num_length,
89 static int AppendSignedDecimal(char **buff, const char *buff_end, s64 num,
92 return AppendNumber(buff, buff_end, (u64)(negative ? -num : num), 10,
103 static int AppendString(char **buff, const char *buff_end, int width,
111 result += AppendChar(buff, buff_end, *s);
115 result += AppendChar(buff, buff_end, ' ');
119 static int AppendPointer(char **buff, const char *buff_end, u64 ptr_value) {
121 result += AppendString(buff, buff_end, 0, -1, "0x");
122 result += AppendUnsigned(buff, buff_end, ptr_value, 16,
135 const char *buff_end = &buff[buff_length - 1];
140 result += AppendChar(&buff, buff_end, *cur);
176 result += AppendSignedDecimal(&buff, buff_end, dval, width,
187 result += AppendUnsigned(&buff, buff_end, uval, (*cur == 'u') ? 10 : 16,
193 result += AppendPointer(&buff, buff_end, va_arg(args, uptr));
200 result += AppendString(&buff, buff_end, left_justified ? -width : width,
206 result += AppendChar(&buff, buff_end, va_arg(args, int));
211 result += AppendChar(&buff, buff_end, '%');
219 RAW_CHECK(buff <= buff_end);
220 AppendChar(&buff, buff_end + 1, '\0');