Searched refs:chunk_capacity (Results 1 – 5 of 5) sorted by relevance
55 .chunk_capacity = 0, in cbor_new_indefinite_bytestring()99 if (data->chunk_count == data->chunk_capacity) { in cbor_bytestring_add_chunk()100 if (!_cbor_safe_to_multiply(CBOR_BUFFER_GROWTH, data->chunk_capacity)) { in cbor_bytestring_add_chunk()105 data->chunk_capacity == 0 ? 1 in cbor_bytestring_add_chunk()106 : CBOR_BUFFER_GROWTH * (data->chunk_capacity); in cbor_bytestring_add_chunk()114 data->chunk_capacity = new_chunk_capacity; in cbor_bytestring_add_chunk()
36 .chunk_capacity = 0, in cbor_new_indefinite_string() 98 if (data->chunk_count == data->chunk_capacity) { in cbor_string_add_chunk() 99 if (!_cbor_safe_to_multiply(CBOR_BUFFER_GROWTH, data->chunk_capacity)) { in cbor_string_add_chunk() 104 data->chunk_capacity == 0 ? 1 in cbor_string_add_chunk() 105 : CBOR_BUFFER_GROWTH * (data->chunk_capacity); in cbor_string_add_chunk() 113 data->chunk_capacity = new_chunk_capacity; in cbor_string_length()
188 size_t chunk_capacity; member
267 ->chunk_capacity, in test_add_chunk_reallocation_overflow() 283 metadata->chunk_capacity = SIZE_MAX; in main() 289 metadata->chunk_capacity = 0; in main()
315 metadata->chunk_capacity = SIZE_MAX; in test_add_chunk_reallocation_overflow()321 metadata->chunk_capacity = 0; in test_add_chunk_reallocation_overflow()352 ->chunk_capacity, in test_bytestring_add_chunk()