Code format tidying; trailing spaces
diff --git a/inc/qcbor/qcbor_decode.h b/inc/qcbor/qcbor_decode.h
index ac6a423..9fa7a40 100644
--- a/inc/qcbor/qcbor_decode.h
+++ b/inc/qcbor/qcbor_decode.h
@@ -820,22 +820,23 @@
@param[in] pCtx The context to check.
- @retval QCBOR_ERR_ARRAY_OR_MAP_STILL_OPEN The CBOR is not well-formed
- as some map or array was not closed off. This should always be treated as an
- unrecoverable error.
-
- @retval QCBOR_ERR_EXTRA_BYTES The CBOR was decoded correctly and
- all maps and arrays are closed, but some of the bytes in the input were not consumed.
- This may or may not be considered an error.
-
+ @retval QCBOR_ERR_ARRAY_OR_MAP_STILL_OPEN The CBOR is not well-formed
+ as some map or array was not closed off. This should always
+ be treated as an unrecoverable error.
+
+ @retval QCBOR_ERR_EXTRA_BYTES The CBOR was decoded correctly and all
+ maps and arrays are closed, but some of the bytes in the
+ input were not consumed. This may or may not be considered
+ an error.
+
@retval QCBOR_SUCCES There were no errors and all bytes were
- consumed.
-
+ consumed.
+
This should always be called to determine if all maps and arrays
where correctly closed and that the CBOR was well-formed.
-
+
This calls the destructor for the string allocator, if one is in use.
-
+
Some CBOR protocols use a CBOR sequence [RFC 8742]
(https://tools.ietf.org/html/rfc8742) . A CBOR sequence typically
doesn't start out with a map or an array. The end of the CBOR is
@@ -843,7 +844,7 @@
occurrence of some particular CBOR data item or such. The buffer given
to decode must start out with valid CBOR, but it can have extra bytes
at the end that are not CBOR or CBOR that is to be ignored.
-
+
QCBORDecode_Finish() should still be called when decoding CBOR
Sequences to check that the input decoded was well-formed. If the
input was well-formed and there are extra bytes at the end @ref
@@ -970,6 +971,6 @@
#ifdef __cplusplus
}
-#endif
+#endif
#endif /* qcbor_decode_h */
diff --git a/inc/qcbor/qcbor_encode.h b/inc/qcbor/qcbor_encode.h
index e6a9a4c..3fdd825 100644
--- a/inc/qcbor/qcbor_encode.h
+++ b/inc/qcbor/qcbor_encode.h
@@ -210,7 +210,7 @@
Note that when you nest arrays or maps in a map, the nested array or
map has a label.
-
+
Many CBOR-based protocols start with an array or map. This makes them
self-delimiting. No external length or end marker is needed to know
the end. It is also possible not start this way, in which case this
@@ -415,14 +415,14 @@
disable use of preferred encoding / decoding and half precision support? This still
needs no floating point HW or SW.
-
+
TODO: -------
-
+
Summary Limits of this implementation:
- The entire encoded CBOR must fit into contiguous memory.