Lines Matching refs:length
50 device->length = 0; in mbfl_memory_device_init()
55 device->length = initsz; in mbfl_memory_device_init()
73 if (initsz > device->length) { in mbfl_memory_device_realloc()
77 device->length = initsz; in mbfl_memory_device_realloc()
96 device->length = 0; in mbfl_memory_device_clear()
125 device->length = 0; in mbfl_memory_device_result()
143 if (device->pos >= device->length) { in mbfl_memory_device_output()
148 newlen = device->length + device->allocsz; in mbfl_memory_device_output()
153 device->length = newlen; in mbfl_memory_device_output()
166 if ((device->pos + 2) >= device->length) { in mbfl_memory_device_output2()
171 newlen = device->length + device->allocsz; in mbfl_memory_device_output2()
176 device->length = newlen; in mbfl_memory_device_output2()
191 if ((device->pos + 4) >= device->length) { in mbfl_memory_device_output4()
196 newlen = device->length + device->allocsz; in mbfl_memory_device_output4()
201 device->length = newlen; in mbfl_memory_device_output4()
227 if ((device->pos + len) >= device->length) { in mbfl_memory_device_strcat()
229 int newlen = device->length + (len + MBFL_MEMORY_DEVICE_ALLOC_SIZE)*sizeof(unsigned char); in mbfl_memory_device_strcat()
234 device->length = newlen; in mbfl_memory_device_strcat()
254 if ((device->pos + len) >= device->length) { in mbfl_memory_device_strncat()
256 int newlen = device->length + len + MBFL_MEMORY_DEVICE_ALLOC_SIZE; in mbfl_memory_device_strncat()
261 device->length = newlen; in mbfl_memory_device_strncat()
281 if ((dest->pos + src->pos) >= dest->length) { in mbfl_memory_device_devcat()
283 int newlen = dest->length + src->pos + MBFL_MEMORY_DEVICE_ALLOC_SIZE; in mbfl_memory_device_devcat()
288 dest->length = newlen; in mbfl_memory_device_devcat()
309 device->length = 0; in mbfl_wchar_device_init()
323 device->length = 0; in mbfl_wchar_device_clear()
333 if (device->pos >= device->length) { in mbfl_wchar_device_output()
338 newlen = device->length + device->allocsz; in mbfl_wchar_device_output()
343 device->length = newlen; in mbfl_wchar_device_output()