Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FCbWriter
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Serialize the field(s) to an owned buffer and return it as an iterator. | Serialization/CompactBinaryWriter.h | ||
FCbFieldViewIterator Save
(
FMutableMemoryView Buffer |
Serialize the field(s) to memory. | Serialization/CompactBinaryWriter.h | |
| Serialize the field(s) to an archive. | Serialization/CompactBinaryWriter.h |
Save()
Description
Serialize the field(s) to an owned buffer and return it as an iterator.
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.
| Name | Save |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Serialization/CompactBinaryWriter.h |
| Include Path | #include "Serialization/CompactBinaryWriter.h" |
| Source | /Engine/Source/Runtime/Core/Private/Serialization/CompactBinaryWriter.cpp |
FCbFieldIterator Save() const
Save(FMutableMemoryView)
Description
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.
| Name | Save |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Serialization/CompactBinaryWriter.h |
| Include Path | #include "Serialization/CompactBinaryWriter.h" |
| Source | /Engine/Source/Runtime/Core/Private/Serialization/CompactBinaryWriter.cpp |
FCbFieldViewIterator Save
(
FMutableMemoryView Buffer
) const
An iterator for the field(s) written to the buffer.
Parameters
| Name | Remarks |
|---|---|
| Buffer | A mutable memory view to write to. Must be exactly GetSaveSize() bytes. |
Save(FArchive &)
Description
Serialize the field(s) to an archive.
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.
| Name | Save |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Serialization/CompactBinaryWriter.h |
| Include Path | #include "Serialization/CompactBinaryWriter.h" |
| Source | /Engine/Source/Runtime/Core/Private/Serialization/CompactBinaryWriter.cpp |
void Save
(
FArchive & Ar
) const
Parameters
| Name | Remarks |
|---|---|
| Ar | An archive to write to. Exactly GetSaveSize() bytes will be written. |