Navigation
API > API/Plugins > API/Plugins/OnlineBase > API/Plugins/OnlineBase/Online
Inheritance Hierarchy
- FNboSerializeToBuffer
- FNboSerializeToBufferOSS
References
| Module | OnlineBase |
| Header | /Engine/Plugins/Online/OnlineBase/Source/Public/Online/NboSerializer.h |
| Include | #include "Online/NboSerializer.h" |
Syntax
class FNboSerializeToBuffer
Remarks
Serializes data in network byte order form into a buffer
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bHasOverflowed | Indicates whether writing to the buffer caused an overflow or not | |
| TArray< uint8 > | Data | Holds the data as it is serialized | |
| uint32 | NumBytes | Tracks how many bytes have been written in the packet |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FNboSerializeToBuffer
(
uint32 Size |
Initializes the write tracking |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FNboSerializeToBuffer & | Adds a substring to the buffer | ||
| const TArray< uint8 > & | GetBuffer () |
Cast operator to get at the formatted buffer data | |
| uint32 | Returns the number of bytes preallocated in the array | ||
| uint32 | GetByteCount () |
Returns the size of the buffer we've built up | |
| uint8 * | GetRawBuffer
(
uint32 Offset |
Gets the buffer at a specific point | |
| bool | HasOverflow () |
Returns whether the buffer had an overflow when writing to it | |
| void | Reset () |
Act as if the buffer is now empty. Useful for buffers that are reused | |
| void | SkipAheadBy
(
uint32 Amount |
Skips forward in the buffer by the specified amount | |
| void | TrimBuffer () |
Trim any extra space in the buffer that is not used | |
| void | WriteBinary
(
const uint8* Buffer, |
Writes a blob of data to the buffer |
Operators
| Type | Name | Description | |
|---|---|---|---|
| Cast operator to get at the formatted buffer data |