Lines Matching refs:outBuf
93 static void outputChar(char c, char *outBuf, int32_t *outIx, int32_t capacity, int32_t indent) { in outputChar() argument
105 (c!='\n' && c!=0 && *outIx < capacity && outBuf[(*outIx)-1]=='\n') || /* case 2. */ in outputChar()
111 outBuf[*outIx] = ' '; in outputChar()
118 outBuf[*outIx] = c; in outputChar()
129 char *outBuf, int32_t *outIx, int32_t capacity) { in outputHexBytes() argument
134 outputChar(c, outBuf, outIx, capacity, 0); in outputHexBytes()
139 static void outputPtrBytes(void *val, char *outBuf, int32_t *outIx, int32_t capacity) { in outputPtrBytes() argument
153 outputHexBytes(*p, 2, outBuf, outIx, capacity); in outputPtrBytes()
158 static void outputString(const char *s, char *outBuf, int32_t *outIx, int32_t capacity, int32_t ind… in outputString() argument
166 outputChar(c, outBuf, outIx, capacity, indent); in outputString()
173 char *outBuf, int32_t *outIx, int32_t capacity, int32_t indent) { in outputUString() argument
177 outputString(NULL, outBuf, outIx, capacity, indent); in outputUString()
183 outputHexBytes(c, 4, outBuf, outIx, capacity); in outputUString()
184 outputChar(' ', outBuf, outIx, capacity, indent); in outputUString()
192 utrace_vformat(char *outBuf, int32_t capacity, int32_t indent, const char *fmt, va_list args) { in utrace_vformat() argument
207 outputChar(fmtC, outBuf, &outIx, capacity, indent); in utrace_vformat()
225 outputChar(c, outBuf, &outIx, capacity, indent); in utrace_vformat()
231 outputString((const char *)ptrArg, outBuf, &outIx, capacity, indent); in utrace_vformat()
238 outputUString((const UChar *)ptrArg, intArg, outBuf, &outIx, capacity, indent); in utrace_vformat()
244 outputHexBytes(intArg, 2, outBuf, &outIx, capacity); in utrace_vformat()
250 outputHexBytes(intArg, 4, outBuf, &outIx, capacity); in utrace_vformat()
256 outputHexBytes(intArg, 8, outBuf, &outIx, capacity); in utrace_vformat()
262 outputHexBytes(longArg, 16, outBuf, &outIx, capacity); in utrace_vformat()
268 outputPtrBytes(ptrArg, outBuf, &outIx, capacity); in utrace_vformat()
276 outputChar('%', outBuf, &outIx, capacity, indent); in utrace_vformat()
304 outputString("*NULL* ", outBuf, &outIx, capacity, indent); in utrace_vformat()
326 outputPtrBytes(*ptrPtr, outBuf, &outIx, capacity); in utrace_vformat()
332 outputChar(*i8Ptr, outBuf, &outIx, capacity, indent); in utrace_vformat()
338 outputString((const char *)*ptrPtr, outBuf, &outIx, capacity, indent); in utrace_vformat()
339 outputChar('\n', outBuf, &outIx, capacity, indent); in utrace_vformat()
346 … outputUString((const UChar *)*ptrPtr, -1, outBuf, &outIx, capacity, indent); in utrace_vformat()
347 outputChar('\n', outBuf, &outIx, capacity, indent); in utrace_vformat()
355 outputHexBytes(longArg, charsToOutput, outBuf, &outIx, capacity); in utrace_vformat()
356 outputChar(' ', outBuf, &outIx, capacity, indent); in utrace_vformat()
363 outputChar('[', outBuf, &outIx, capacity, indent); in utrace_vformat()
364 outputHexBytes(vectorLen, 8, outBuf, &outIx, capacity); in utrace_vformat()
365 outputChar(']', outBuf, &outIx, capacity, indent); in utrace_vformat()
375 outputChar(fmtC, outBuf, &outIx, capacity, indent); in utrace_vformat()
378 … outputChar(0, outBuf, &outIx, capacity, indent); /* Make sure that output is null terminated */ in utrace_vformat()
386 utrace_format(char *outBuf, int32_t capacity, in utrace_format() argument
391 retVal = utrace_vformat(outBuf, capacity, indent, fmt, args); in utrace_format()