Lines Matching refs:length
51 device->length = 0; in mbfl_memory_device_init()
56 device->length = initsz; in mbfl_memory_device_init()
74 if (initsz > device->length) { in mbfl_memory_device_realloc()
78 device->length = initsz; in mbfl_memory_device_realloc()
97 device->length = 0; in mbfl_memory_device_clear()
126 device->length = 0; in mbfl_memory_device_result()
144 if (device->pos >= device->length) { in mbfl_memory_device_output()
149 if (device->length > SIZE_MAX - device->allocsz) { in mbfl_memory_device_output()
154 newlen = device->length + device->allocsz; in mbfl_memory_device_output()
159 device->length = newlen; in mbfl_memory_device_output()
172 if (2 > device->length - device->pos) { in mbfl_memory_device_output2()
177 if (device->length > SIZE_MAX - device->allocsz) { in mbfl_memory_device_output2()
182 newlen = device->length + device->allocsz; in mbfl_memory_device_output2()
187 device->length = newlen; in mbfl_memory_device_output2()
202 if (4 > device->length - device->pos) { in mbfl_memory_device_output4()
207 if (device->length > SIZE_MAX - device->allocsz) { in mbfl_memory_device_output4()
212 newlen = device->length + device->allocsz; in mbfl_memory_device_output4()
217 device->length = newlen; in mbfl_memory_device_output4()
240 if (len > device->length - device->pos) { in mbfl_memory_device_strncat()
246 || device->length > SIZE_MAX - (len + MBFL_MEMORY_DEVICE_ALLOC_SIZE)) { in mbfl_memory_device_strncat()
251 newlen = device->length + len + MBFL_MEMORY_DEVICE_ALLOC_SIZE; in mbfl_memory_device_strncat()
257 device->length = newlen; in mbfl_memory_device_strncat()
279 device->length = 0; in mbfl_wchar_device_init()
293 device->length = 0; in mbfl_wchar_device_clear()
303 if (device->pos >= device->length) { in mbfl_wchar_device_output()
308 if (device->length > SIZE_MAX - device->allocsz) { in mbfl_wchar_device_output()
313 newlen = device->length + device->allocsz; in mbfl_wchar_device_output()
323 device->length = newlen; in mbfl_wchar_device_output()