|
CeresEngine 0.2.0
A game development framework
|
Represents a CBOR array. More...
#include <CeresEngine/Foundation/CBOR.hpp>
Public Member Functions | |
| bool | isIndeterminate () const noexcept |
| Determines if the array is indeterminate. | |
Public Attributes | |
| UInt64 | size = ~0u |
| The number of items in the array. | |
Represents a CBOR array.
In CBOR, arrays can either be determinate, meaning they have a known size, or indeterminate, meaning their size is not known at the time the encoding starts.
When size value is set other than ~0u, it indicates a definite-sized array. In this case, exactly size values must be written following the array.
If size equals ~0u, then the array is indeterminate, and the number of items is not known when encoding starts. In this case, an arbitrary number of elements, including 0, can be encoded. To indicate the end of the array a Break must be encoded.
|
inlinenoexcept |
Determines if the array is indeterminate.
| UInt64 CeresEngine::CBOR::Array::size = ~0u |
The number of items in the array.