FCbWriter::Save

Serialize the field(s) to memory.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Serialization/CompactBinaryWriter.h

Include

#include "Serialization/CompactBinaryWriter.h"

Source

/Engine/Source/Runtime/Core/Private/Serialization/CompactBinaryWriter.cpp

Syntax

FCbFieldViewIterator Save
(
    FMutableMemoryView Buffer
) const

Remarks

Serialize the field(s) to memory.

It is not valid to call this function in the middle of writing an object, array, or field. The writer remains valid for further use when this function returns.

Returns

An iterator for the field(s) written to the buffer.

Parameters

Parameter

Description

Buffer

A mutable memory view to write to. Must be exactly GetSaveSize() bytes.