Navigation
API > API/Plugins > API/Plugins/OnlineBase
Serializes data in network byte order form into a buffer
| Name | FNboSerializeToBuffer |
| Type | class |
| Header File | /Engine/Plugins/Online/OnlineBase/Source/Public/Online/NboSerializer.h |
| Include Path | #include "Online/NboSerializer.h" |
Syntax
class FNboSerializeToBuffer
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Hidden on purpose | Online/NboSerializer.h | ||
FNboSerializeToBuffer
(
uint32 Size |
Initializes the write tracking | Online/NboSerializer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNboSerializeToBuffer & AddString
(
const ANSICHAR* String, |
Adds a substring to the buffer | Online/NboSerializer.h | |
const TArray< uint8 > & GetBuffer() |
Cast operator to get at the formatted buffer data | Online/NboSerializer.h | |
uint32 GetBufferSize() |
Returns the number of bytes preallocated in the array | Online/NboSerializer.h | |
uint32 GetByteCount() |
Returns the size of the buffer we've built up | Online/NboSerializer.h | |
uint8 * GetRawBuffer
(
uint32 Offset |
Gets the buffer at a specific point | Online/NboSerializer.h | |
bool HasOverflow() |
Returns whether the buffer had an overflow when writing to it | Online/NboSerializer.h | |
void Reset() |
Act as if the buffer is now empty. Useful for buffers that are reused | Online/NboSerializer.h | |
void SkipAheadBy
(
uint32 Amount |
Skips forward in the buffer by the specified amount | Online/NboSerializer.h | |
void TrimBuffer() |
Trim any extra space in the buffer that is not used | Online/NboSerializer.h | |
void WriteBinary
(
const uint8* Buffer, |
Writes a blob of data to the buffer | Online/NboSerializer.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator uint8 *() |
Cast operator to get at the formatted buffer data | Online/NboSerializer.h |