FCborWriter

Writer for encoding a stream with the cbor protocol

Choose your operating system:

Windows

macOS

Linux

References

Module

Cbor

Header

/Engine/Source/Runtime/Cbor/Public/CborWriter.h

Include

#include "CborWriter.h"

Syntax

class FCborWriter

Remarks

Writer for encoding a stream with the cbor protocol

Constructors

Name Description

Public function

FCborWriter

(
    FArchive* InStream,
    ECborEndianness InWriterEndianness
)

Construct a CBOR writer.

Destructors

Name Description

Public function

~FCborWriter()

Functions

Name Description

Public function Const

const FArchi...

 

GetArchive()

Public function

void

 

WriteContainerEnd()

Write a container break code, need a indefinite container context.

Public function

void

 

WriteContainerStart

(
    ECborCode ContainerType,
    int64 NbItem
)

Write a container start code.

Public function

void

 

WriteNull()

Write a value.

Public function

void

 

WriteValue

(
    uint64 Value
)

Public function

void

 

WriteValue

(
    int64 Value
)

Public function

void

 

WriteValue

(
    bool Value
)

Public function

void

 

WriteValue

(
    float Value
)

Public function

void

 

WriteValue

(
    double Value
)

Public function

void

 

WriteValue

(
    const FString& Value
)

Public function

void

 

WriteValue

(
    const char* CString,
    uint64 Length
)

Public function

void

 

WriteValue

(
    const uint8* Bytes,
    uint64 Length
)

See Also