Navigation
API > API/Runtime > API/Runtime/Core
Similar to FMemoryWriter, but able to internally manage the memory for the buffer.
| Name | FBufferWriter |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Serialization/BufferWriter.h |
| Include Path | #include "Serialization/BufferWriter.h" |
Syntax
class FBufferWriter : public FArchive
Inheritance Hierarchy
- FArchiveState → FArchive → FBufferWriter
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FBufferWriter
(
void* Data, |
Constructor | Serialization/BufferWriter.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FBufferWriter() |
Serialization/BufferWriter.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void * GetWriterData() |
Serialization/BufferWriter.h | ||
Type * SerializeUninitialized() |
Serialization/BufferWriter.h |
Overridden from FArchive
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool Close() |
Attempts to close and finalize any handles used for backing data storage, returns true if it succeeded. | Serialization/BufferWriter.h | |
virtual void Seek
(
int64 InPos |
Attempts to set the current offset into backing data storage, this will do nothing if there is no storage. | Serialization/BufferWriter.h | |
virtual void Serialize
(
void* Data, |
Serialization/BufferWriter.h |
Overridden from FArchiveState
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AtEnd() |
Returns true if the current location within the backing data storage is at the end, always returns false if there is no storage. | Serialization/BufferWriter.h | |
virtual FString GetArchiveName () |
Returns the name of the Archive. | Serialization/BufferWriter.h | |
virtual int64 Tell () |
Returns the current location within the backing data storage, which can possibly be passed to Seek later to restore a read/write location. | Serialization/BufferWriter.h | |
virtual int64 TotalSize() |
Returns total size of the backing data storage. | Serialization/BufferWriter.h |