Lines Matching refs:buffer
42 device->buffer = (initsz > 0) ? emalloc(initsz) : NULL; in mbfl_memory_device_init()
51 device->buffer = erealloc(device->buffer, initsz); in mbfl_memory_device_realloc()
59 if (device->buffer) { in mbfl_memory_device_clear()
60 efree(device->buffer); in mbfl_memory_device_clear()
62 device->buffer = NULL; in mbfl_memory_device_clear()
82 result->val = device->buffer; in mbfl_memory_device_result()
83 device->buffer = NULL; in mbfl_memory_device_result()
101 device->buffer = erealloc(device->buffer, newlen); in mbfl_memory_device_output()
105 device->buffer[device->pos++] = (unsigned char)c; in mbfl_memory_device_output()
126 device->buffer = erealloc(device->buffer, newlen); in mbfl_memory_device_strncat()
130 unsigned char *w = &device->buffer[device->pos]; in mbfl_memory_device_strncat()
139 return mbfl_memory_device_strncat(dest, (const char*)src->buffer, src->pos); in mbfl_memory_device_devcat()
144 device->buffer = NULL; in mbfl_wchar_device_init()
152 if (device->buffer) { in mbfl_wchar_device_clear()
153 efree(device->buffer); in mbfl_wchar_device_clear()
155 device->buffer = NULL; in mbfl_wchar_device_clear()
178 device->buffer = erealloc(device->buffer, newlen * sizeof(int)); in mbfl_wchar_device_output()
182 device->buffer[device->pos++] = c; in mbfl_wchar_device_output()