Home | History | Annotate | Download | only in libpng

Lines Matching refs:buffer

108 /* Utility to safely appends strings to a buffer.  This never errors out so
112 png_safecat(png_charp buffer, size_t bufsize, size_t pos,
115 if (buffer != NULL && pos < bufsize)
119 buffer[pos++] = *string++;
121 buffer[pos] = '\0';
128 /* Utility to dump an unsigned value into a buffer, given a start pointer and
129 * and end pointer (which should point just *beyond* the end of the buffer!)
258 char buffer[PNG_NUMBER_BUFFER_SIZE];
259 png_warning_parameter(p, number, PNG_FORMAT_NUMBER(buffer, format, value));
268 char buffer[PNG_NUMBER_BUFFER_SIZE];
275 str = PNG_FORMAT_NUMBER(buffer, format, u);
277 if (value < 0 && str > buffer)
287 /* The internal buffer is just 192 bytes - enough for all our messages,
292 size_t i = 0; /* Index in the msg[] buffer: */
434 png_format_buffer(png_const_structrp png_ptr, png_charp buffer, png_const_charp
447 buffer[iout++] = PNG_LITERAL_LEFT_SQUARE_BRACKET;
448 buffer[iout++] = png_digit[(c & 0xf0) >> 4];
449 buffer[iout++] = png_digit[c & 0x0f];
450 buffer[iout++] = PNG_LITERAL_RIGHT_SQUARE_BRACKET;
455 buffer[iout++] = (char)c;
460 buffer[iout] = '\0';
466 buffer[iout++] = ':';
467 buffer[iout++] = ' ';
470 buffer[iout++] = error_message[iin++];
473 buffer[iout] = '\0';
601 * buffer is, just that it doesn't change.
603 * If the buffer size is no *larger* than the size of jmp_buf when libpng is
606 * the buffer is allocated and this may fail, causing the function to return
657 /* Finally fill in the function, now we have a satisfactory buffer. It is
901 /* Missing longjmp buffer, the following is to help debugging: */