• Home
  • Raw
  • Download

Lines Matching refs:buff_end

34 static int AppendChar(char **buff, const char *buff_end, char c) {  in AppendChar()  argument
35 if (*buff < buff_end) { in AppendChar()
45 static int AppendNumber(char **buff, const char *buff_end, u64 absolute_value, in AppendNumber() argument
57 result += AppendChar(buff, buff_end, '-'); in AppendNumber()
75 result += AppendChar(buff, buff_end, c); in AppendNumber()
77 if (negative && !pad_with_zero) result += AppendChar(buff, buff_end, '-'); in AppendNumber()
80 result += AppendChar(buff, buff_end, (digit < 10) ? '0' + digit in AppendNumber()
86 static int AppendUnsigned(char **buff, const char *buff_end, u64 num, u8 base, in AppendUnsigned() argument
88 return AppendNumber(buff, buff_end, num, base, minimal_num_length, in AppendUnsigned()
92 static int AppendSignedDecimal(char **buff, const char *buff_end, s64 num, in AppendSignedDecimal() argument
95 return AppendNumber(buff, buff_end, (u64)(negative ? -num : num), 10, in AppendSignedDecimal()
99 static int AppendString(char **buff, const char *buff_end, int precision, in AppendString() argument
107 result += AppendChar(buff, buff_end, *s); in AppendString()
112 static int AppendPointer(char **buff, const char *buff_end, u64 ptr_value) { in AppendPointer() argument
114 result += AppendString(buff, buff_end, -1, "0x"); in AppendPointer()
115 result += AppendUnsigned(buff, buff_end, ptr_value, 16, in AppendPointer()
126 const char *buff_end = &buff[buff_length - 1]; in VSNPrintf() local
131 result += AppendChar(&buff, buff_end, *cur); in VSNPrintf()
163 result += AppendSignedDecimal(&buff, buff_end, dval, width, in VSNPrintf()
172 result += AppendUnsigned(&buff, buff_end, uval, in VSNPrintf()
178 result += AppendPointer(&buff, buff_end, va_arg(args, uptr)); in VSNPrintf()
183 result += AppendString(&buff, buff_end, precision, va_arg(args, char*)); in VSNPrintf()
188 result += AppendChar(&buff, buff_end, va_arg(args, int)); in VSNPrintf()
193 result += AppendChar(&buff, buff_end, '%'); in VSNPrintf()
201 RAW_CHECK(buff <= buff_end); in VSNPrintf()
202 AppendChar(&buff, buff_end + 1, '\0'); in VSNPrintf()