Navigation
API > API/Runtime > API/Runtime/Cbor
Writer for encoding a stream with the cbor protocol
| Name | FCborWriter |
| Type | class |
| Header File | /Engine/Source/Runtime/Cbor/Public/CborWriter.h |
| Include Path | #include "CborWriter.h" |
Syntax
class FCborWriter
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCborWriter
(
FArchive* InStream, |
Construct a CBOR writer. | CborWriter.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FCborWriter() |
CborWriter.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ContextStack | TArray< FCborContext > | The writer context stack. | CborWriter.h | |
| Endianness | ECborEndianness | Write the CBOR data using the specified endianness. | CborWriter.h | |
| Stream | FArchive * | The archive being written to. | CborWriter.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FArchive * GetArchive() |
CborWriter.h | ||
void WriteContainerEnd() |
Write a container break code, need a indefinite container context. | CborWriter.h | |
void WriteContainerStart
(
ECborCode ContainerType, |
Write a container start code. | CborWriter.h | |
void WriteNull() |
Write a value. | CborWriter.h | |
void WriteValue
(
const FUtf8StringView& Value |
CborWriter.h | ||
void WriteValue
(
const FStringView& Value |
CborWriter.h | ||
void WriteValue
(
const FUtf8String& Value |
CborWriter.h | ||
void WriteValue
(
const FAnsiString& Value |
CborWriter.h | ||
void WriteValue
(
const FString& Value |
CborWriter.h | ||
void WriteValue
(
int64 Value |
CborWriter.h | ||
void WriteValue
(
float Value |
CborWriter.h | ||
void WriteValue
(
bool Value |
CborWriter.h | ||
void WriteValue
(
const char* CString, |
CborWriter.h | ||
void WriteValue
(
uint64 Value |
CborWriter.h | ||
void WriteValue
(
double Value |
CborWriter.h | ||
void WriteValue
(
const uint8* Bytes, |
CborWriter.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FCborHeader WriteUIntValue
(
FCborHeader Header, |
Write a uint Value for Header in Ar and return the final generated cbor Header. | CborWriter.h |