Lines Matching refs:newlen
35870 duk_size_t newlen; in duk__cbor_encode_ensure_slowpath() local
35889 newlen = oldlen + 1U; in duk__cbor_encode_ensure_slowpath()
35891 newlen = oldlen * 2U; in duk__cbor_encode_ensure_slowpath()
35893 DUK_ASSERT(newlen >= oldlen); in duk__cbor_encode_ensure_slowpath()
35895 if (minlen > newlen) { in duk__cbor_encode_ensure_slowpath()
35896 newlen = minlen; in duk__cbor_encode_ensure_slowpath()
35898 DUK_ASSERT(newlen >= oldlen); in duk__cbor_encode_ensure_slowpath()
35899 DUK_ASSERT(newlen >= minlen); in duk__cbor_encode_ensure_slowpath()
35900 DUK_ASSERT(newlen > 0U); in duk__cbor_encode_ensure_slowpath()
35902 DUK_DD(DUK_DDPRINT("cbor encode buffer resized to %ld", (long) newlen)); in duk__cbor_encode_ensure_slowpath()
35904 p_new = (duk_uint8_t *) duk_resize_buffer(enc_ctx->thr, enc_ctx->idx_buf, newlen); in duk__cbor_encode_ensure_slowpath()
35908 enc_ctx->buf_end = p_new + newlen; in duk__cbor_encode_ensure_slowpath()
35910 enc_ctx->len = newlen; in duk__cbor_encode_ensure_slowpath()