Home
last modified time | relevance | path

Searched refs:chunk_capacity (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/libcbor/src/cbor/
H A Dbytestrings.c55 .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()
H A Dstrings.c36 .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()
H A Ddata.h188 size_t chunk_capacity; member
/freebsd/contrib/libcbor/test/
H A Dstring_test.c267 ->chunk_capacity, in test_add_chunk_reallocation_overflow()
283 metadata->chunk_capacity = SIZE_MAX; in main()
289 metadata->chunk_capacity = 0; in main()
H A Dbytestring_test.c315 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()