CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::CBOR::Array Struct Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ isIndeterminate()

bool CeresEngine::CBOR::Array::isIndeterminate ( ) const
inlinenoexcept

Determines if the array is indeterminate.

Member Data Documentation

◆ size

UInt64 CeresEngine::CBOR::Array::size = ~0u

The number of items in the array.


The documentation for this struct was generated from the following file: