Home
last modified time | relevance | path

Searched refs:remaining (Results 1 – 4 of 4) sorted by relevance

/tinycbor-2.7.6/src/
Dcbor_buf_writer.c26 ptrdiff_t remaining = (ptrdiff_t)cb->end; in would_overflow() local
27 remaining -= (ptrdiff_t)cb->ptr; in would_overflow()
28 remaining -= (ptrdiff_t)len; in would_overflow()
29 return (remaining < 0); in would_overflow()
Dcborparser.c260 if (it->remaining != UINT32_MAX) { in preparse_next_value()
262 if (it->type != CborTagType && !--it->remaining) { in preparse_next_value()
266 } else if (it->remaining == UINT32_MAX && it->offset != it->parser->end && in preparse_next_value()
271 it->remaining = 0; in preparse_next_value()
341 it->remaining = 1;/* there's one type altogether, usually an array or map */ in cbor_parser_init()
407 if (!it->remaining) in cbor_value_advance_fixed()
454 if (!it->remaining) in cbor_value_advance()
521 recursed->remaining = UINT32_MAX; in cbor_value_enter_container()
534 recursed->remaining = (uint32_t)len; in cbor_value_enter_container()
535 if (recursed->remaining != len || len == UINT32_MAX) { in cbor_value_enter_container()
[all …]
/tinycbor-2.7.6/tests/encoder/
Dtst_encoder.cpp284 QCOMPARE(encoder.remaining, size_t(1)); in compare()
664 QCOMPARE(container.remaining, size_t(2)); in tooShortArrays()
678 QCOMPARE(container.remaining, size_t(4)); in tooShortMaps()
693 QCOMPARE(container.remaining, size_t(0)); in tooBigArrays()
709 QCOMPARE(container.remaining, size_t(0)); in tooBigMaps()
/tinycbor-2.7.6/include/tinycbor/
Dcbor.h266 uint32_t remaining; member
276 { return it->remaining == 0; } in cbor_value_at_end()