Lines Matching refs:buffer
88 #define SECUREC_ERROR_INVALID_RANGE(msg) printf("%s invalid dest buffer size\n", msg)
89 #define SECUREC_ERROR_BUFFER_OVERLAP(msg) printf("%s buffer overlap\n", msg)
213 int bufferIsWide; /* flag for buffer contains wide chars */
402 static int SecDecodeTypeC(SecFormatAttr *attr, unsigned int cValue, SecFormatBuf *formatBuf, SecBuffer *buffer)
420 if (mbtowc(buffer->wStr, tempchar, sizeof(tempchar)) < 0) {
424 buffer->wStr[0] = wchar;
426 formatBuf->wStr = buffer->wStr;
434 textLen = wctomb(buffer->str, wchar);
443 buffer->str[0] = (char)temp;
446 formatBuf->str = buffer->str;
616 SecBuffer buffer;
618 formatAttr.bufferIsWide = 0; /* flag for buffer contains wide chars */
758 textLen = SecDecodeTypeC(&formatAttr, cValue, &formatBuf, &buffer);
797 formatBuf.str = buffer.str; /* output buffer for float string with default size */
806 /* calc buffer size to store long double value */
851 /* if SECUREC_FMT_STR_LEN is NOT enough, alloc a new buffer */
917 /* if buffer is alloced on heap, free it */
1149 formatBuf.str = &buffer.str[SECUREC_BUFFER_SIZE];
1229 /* compute length of number,.if textLen > 0, then formatBuf.str must be in buffer.str */
1230 textLen = (int)((char *)&buffer.str[SECUREC_BUFFER_SIZE] - formatBuf.str);
1270 formatBuf.str = &buffer.str[SECUREC_BUFFER_SIZE - 1];
1420 /* the buffer was too small; we return truncation */
1444 if (retVal == SECUREC_PRINTF_TRUNCATE) { /* lsd add to keep dest buffer not destroyed 2014.2.18 */
1485 extern int HiLogWriteInternal(const char *buffer, size_t bufLen);