Lines Matching refs:length
44 device->length = 0; in mbfl_memory_device_init()
48 device->length = initsz; in mbfl_memory_device_init()
63 if (initsz > device->length) { in mbfl_memory_device_realloc()
65 device->length = initsz; in mbfl_memory_device_realloc()
83 device->length = 0; in mbfl_memory_device_clear()
112 device->length = 0; in mbfl_memory_device_result()
130 if (device->pos >= device->length) { in mbfl_memory_device_output()
134 if (device->length > SIZE_MAX - device->allocsz) { in mbfl_memory_device_output()
139 newlen = device->length + device->allocsz; in mbfl_memory_device_output()
141 device->length = newlen; in mbfl_memory_device_output()
159 if (len > device->length - device->pos) { in mbfl_memory_device_strncat()
164 || device->length > SIZE_MAX - (len + MBFL_MEMORY_DEVICE_ALLOC_SIZE)) { in mbfl_memory_device_strncat()
169 newlen = device->length + len + MBFL_MEMORY_DEVICE_ALLOC_SIZE; in mbfl_memory_device_strncat()
171 device->length = newlen; in mbfl_memory_device_strncat()
192 device->length = 0; in mbfl_wchar_device_init()
206 device->length = 0; in mbfl_wchar_device_clear()
216 if (device->pos >= device->length) { in mbfl_wchar_device_output()
220 if (device->length > SIZE_MAX - device->allocsz) { in mbfl_wchar_device_output()
225 newlen = device->length + device->allocsz; in mbfl_wchar_device_output()
232 device->length = newlen; in mbfl_wchar_device_output()