Lines Matching full:if

89  * If the encoding was successful, they return CborNoError. Some functions do
95 * encode the item being appended. If that is not possible, they return
120 * if (!err)
123 * if (!err)
126 * if (!err)
129 * if (!err)
138 * deals with dynamically growing the buffer if the initial allocation wasn't
154 * if (nbuf == NULL)
164 * if (err && err != CborErrorOutOfMemory)
172 * if (more_size) {
220 * but if in the future, any function starts returning a non-OOM error, this will need
265 if (ui < Value8Bit) { in encode_number_no_update()
269 if (ui > 0xffU) in encode_number_no_update()
271 if (ui > 0xffffU) in encode_number_no_update()
273 if (ui > 0xffffffffU) in encode_number_no_update()
329 * This function may return error CborErrorIllegalSimpleType if the \a value
335 /* check if this is a valid simple type */ in cbor_encode_simple_value()
336 if (value >= HalfPrecisionFloat && value <= Break) in cbor_encode_simple_value()
361 if (size == 8) in cbor_encode_floating_point()
363 else if (size == 4) in cbor_encode_floating_point()
386 if (err && !isOomError(err)) in encode_string()
432 if (err && !isOomError(err)) { in cbor_encode_byte_iovec()
437 if (err && !isOomError(err)) { in cbor_encode_byte_iovec()
469 if (length == CborIndefiniteLength) { in create_container()
475 if (err && !isOomError(err)) in create_container()
489 * otherwise the stream is invalid. If the number of items is not known when
508 * items, otherwise the stream is invalid. If the number of items is not known
513 * key-value pairs in the stream. If the length \a length is larger than this
520 if (length != CborIndefiniteLength && length > SIZE_MAX / 2) in cbor_encoder_create_map()
569 if (containerEncoder->flags & CborIteratorFlag_UnknownLength) in cbor_encoder_close_container()
632 * If the encoding process had errors, the return value of this function is
633 * meaningless. If the only errors were CborErrorOutOfMemory, instead use
647 * condition will happen for the encoding. If the buffer was big enough, this
652 * more CborErrorOutOfMemory errors, but no other error. If any other error