Lines Matching refs:capacity
88 static void outputChar(char c, char *outBuf, int32_t *outIx, int32_t capacity, int32_t indent) { in outputChar() argument
100 (c!='\n' && c!=0 && *outIx < capacity && outBuf[(*outIx)-1]=='\n') || /* case 2. */ in outputChar()
101 (c=='\n' && *outIx>=capacity)) /* case 3 */ in outputChar()
105 if (*outIx < capacity) { in outputChar()
112 if (*outIx < capacity) { in outputChar()
124 char *outBuf, int32_t *outIx, int32_t capacity) { in outputHexBytes() argument
129 outputChar(c, outBuf, outIx, capacity, 0); in outputHexBytes()
134 static void outputPtrBytes(void *val, char *outBuf, int32_t *outIx, int32_t capacity) { in outputPtrBytes() argument
148 outputHexBytes(*p, 2, outBuf, outIx, capacity); in outputPtrBytes()
153 static void outputString(const char *s, char *outBuf, int32_t *outIx, int32_t capacity, int32_t ind… in outputString() argument
161 outputChar(c, outBuf, outIx, capacity, indent); in outputString()
168 char *outBuf, int32_t *outIx, int32_t capacity, int32_t indent) { in outputUString() argument
172 outputString(NULL, outBuf, outIx, capacity, indent); in outputUString()
178 outputHexBytes(c, 4, outBuf, outIx, capacity); in outputUString()
179 outputChar(' ', outBuf, outIx, capacity, indent); in outputUString()
187 utrace_vformat(char *outBuf, int32_t capacity, int32_t indent, const char *fmt, va_list args) { in utrace_vformat() argument
202 outputChar(fmtC, outBuf, &outIx, capacity, indent); in utrace_vformat()
220 outputChar(c, outBuf, &outIx, capacity, indent); in utrace_vformat()
226 outputString((const char *)ptrArg, outBuf, &outIx, capacity, indent); in utrace_vformat()
233 outputUString((const UChar *)ptrArg, intArg, outBuf, &outIx, capacity, indent); in utrace_vformat()
239 outputHexBytes(intArg, 2, outBuf, &outIx, capacity); in utrace_vformat()
245 outputHexBytes(intArg, 4, outBuf, &outIx, capacity); in utrace_vformat()
251 outputHexBytes(intArg, 8, outBuf, &outIx, capacity); in utrace_vformat()
257 outputHexBytes(longArg, 16, outBuf, &outIx, capacity); in utrace_vformat()
263 outputPtrBytes(ptrArg, outBuf, &outIx, capacity); in utrace_vformat()
271 outputChar('%', outBuf, &outIx, capacity, indent); in utrace_vformat()
299 outputString("*NULL* ", outBuf, &outIx, capacity, indent); in utrace_vformat()
321 outputPtrBytes(*ptrPtr, outBuf, &outIx, capacity); in utrace_vformat()
327 outputChar(*i8Ptr, outBuf, &outIx, capacity, indent); in utrace_vformat()
333 outputString(*ptrPtr, outBuf, &outIx, capacity, indent); in utrace_vformat()
334 outputChar('\n', outBuf, &outIx, capacity, indent); in utrace_vformat()
341 … outputUString((const UChar *)*ptrPtr, -1, outBuf, &outIx, capacity, indent); in utrace_vformat()
342 outputChar('\n', outBuf, &outIx, capacity, indent); in utrace_vformat()
350 outputHexBytes(longArg, charsToOutput, outBuf, &outIx, capacity); in utrace_vformat()
351 outputChar(' ', outBuf, &outIx, capacity, indent); in utrace_vformat()
358 outputChar('[', outBuf, &outIx, capacity, indent); in utrace_vformat()
359 outputHexBytes(vectorLen, 8, outBuf, &outIx, capacity); in utrace_vformat()
360 outputChar(']', outBuf, &outIx, capacity, indent); in utrace_vformat()
370 outputChar(fmtC, outBuf, &outIx, capacity, indent); in utrace_vformat()
373 … outputChar(0, outBuf, &outIx, capacity, indent); /* Make sure that output is null terminated */ in utrace_vformat()
381 utrace_format(char *outBuf, int32_t capacity, in utrace_format() argument
386 retVal = utrace_vformat(outBuf, capacity, indent, fmt, args); in utrace_format()