Lines Matching refs:length
43 device->length = initsz; in mbfl_memory_device_init()
50 if (initsz > device->length) { in mbfl_memory_device_realloc()
52 device->length = initsz; in mbfl_memory_device_realloc()
63 device->length = device->pos = 0; in mbfl_memory_device_clear()
84 device->length = device->pos = 0; in mbfl_memory_device_result()
92 if (device->pos >= device->length) { in mbfl_memory_device_output()
95 if (device->length > SIZE_MAX - device->allocsz) { in mbfl_memory_device_output()
100 size_t newlen = device->length + device->allocsz; in mbfl_memory_device_output()
102 device->length = newlen; in mbfl_memory_device_output()
116 if (len > device->length - device->pos) { in mbfl_memory_device_strncat()
120 || device->length > SIZE_MAX - (len + MBFL_MEMORY_DEVICE_ALLOC_SIZE)) { in mbfl_memory_device_strncat()
125 size_t newlen = device->length + len + MBFL_MEMORY_DEVICE_ALLOC_SIZE; in mbfl_memory_device_strncat()
127 device->length = newlen; in mbfl_memory_device_strncat()
145 device->length = 0; in mbfl_wchar_device_init()
156 device->length = device->pos = 0; in mbfl_wchar_device_clear()
163 if (device->pos >= device->length) { in mbfl_wchar_device_output()
167 if (device->length > SIZE_MAX - device->allocsz) { in mbfl_wchar_device_output()
172 newlen = device->length + device->allocsz; in mbfl_wchar_device_output()
179 device->length = newlen; in mbfl_wchar_device_output()