7 #include <aws/common/cbor.h>
37 Unknown = AWS_CBOR_TYPE_UNKNOWN,
38 UInt = AWS_CBOR_TYPE_UINT,
39 NegInt = AWS_CBOR_TYPE_NEGINT,
40 Float = AWS_CBOR_TYPE_FLOAT,
41 Bytes = AWS_CBOR_TYPE_BYTES,
42 Text = AWS_CBOR_TYPE_TEXT,
45 Tag = AWS_CBOR_TYPE_TAG,
46 Bool = AWS_CBOR_TYPE_BOOL,
47 Null = AWS_CBOR_TYPE_NULL,
49 Break = AWS_CBOR_TYPE_BREAK,
78 void Reset() noexcept;
86 void WriteUInt(uint64_t value) noexcept;
95 void WriteNegInt(uint64_t value) noexcept;
106 void WriteFloat(
double value) noexcept;
133 void WriteArrayStart(
size_t number_entries) noexcept;
144 void WriteMapStart(
size_t number_entries) noexcept;
155 void WriteTag(uint64_t tag_number) noexcept;
160 void WriteNull() noexcept;
165 void WriteUndefined() noexcept;
170 void WriteBool(
bool value) noexcept;
177 void WriteBreak() noexcept;
184 void WriteIndefBytesStart() noexcept;
191 void WriteIndefTextStart() noexcept;
198 void WriteIndefArrayStart() noexcept;
205 void WriteIndefMapStart() noexcept;
208 struct aws_cbor_encoder *m_encoder;
235 size_t GetRemainingLength() noexcept;
266 bool ConsumeNextWholeDataItem() noexcept;
286 bool ConsumeNextSingleElement() noexcept;
357 int LastError() const noexcept {
return m_lastError ? m_lastError : AWS_ERROR_UNKNOWN; }
360 struct aws_cbor_decoder *m_decoder;
#define AWS_CRT_CPP_API
Definition: Exports.h:36
aws_allocator Allocator
Definition: Allocator.h:14
aws_byte_cursor ByteCursor
Definition: Types.h:31
int LastError() const noexcept
Definition: Cbor.h:357
AWS_CRT_CPP_API Allocator * ApiAllocator() noexcept
Definition: Allocator.cpp:24
Definition: Optional.h:18
CborType
Definition: Cbor.h:35
Definition: Allocator.h:10