FNboSerializeFromBuffer

Disable used without initialization warning because the reads are initializing.

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

/Engine/Plugins/Online/OnlineSubsystem/Source/Public/NboSerializer.h

Include

#include "NboSerializer.h"

Syntax

class FNboSerializeFromBuffer

Remarks

Class used to read data from a NBO data buffer

Variables

Name Description

Protected variable

bool

 

bHasOverflowed

Indicates whether reading from the buffer caused an overflow or not

Protected variable

int32

 

CurrentOffset

The current location in the byte stream for reading

Protected variable

const uint8 ...

 

Data

Pointer to the data this reader is attached to

Protected variable

const int32

 

NumBytes

The size of the data in bytes

Constructors

Name Description

Protected function

FNboSerializeFromBuffer()

Hidden on purpose

Protected function

FNboSerializeFromBuffer()

Hidden on purpose

Public function

FNboSerializeFromBuffer

(
    const uint8* InData,
    int32 Length
)

Initializes the buffer, size, and zeros the read offset

Public function

FNboSerializeFromBuffer

(
    const uint8* InData,
    int32 Length
)

Initializes the buffer, size, and zeros the read offset

Functions

Name Description

Public function Const

int32

 

AvailableToRead()

Public function Const

int32

 

AvailableToRead()

Public function Const

int32

 

GetBufferSize()

Returns the number of total bytes in the buffer

Public function Const

int32

 

GetBufferSize()

Returns the number of total bytes in the buffer

Public function Const

bool

 

HasOverflow()

Returns whether the buffer had an overflow when reading from it

Public function Const

bool

 

HasOverflow()

Returns whether the buffer had an overflow when reading from it

Public function

void

 

ReadBinary

(
    uint8* OutBuffer,
    uint32 NumToRead
)

Reads a blob of data from the buffer

Public function

void

 

ReadBinary

(
    uint8* OutBuffer,
    uint32 NumToRead
)

Reads a blob of data from the buffer

Public function

void

 

ReadBinaryArray

(
    TArray< uint8 >& OutArray,
    uint32 NumToRead
)

Reads a blob of data from the buffer into an array Prevents the necessity for additional allocation.

Public function

void

 

Seek

(
    int32 Pos
)

Seek to the desired position in the buffer

Public function

void

 

Seek

(
    int32 Pos
)

Seek to the desired position in the buffer

Public function Const

int32

 

Tell()

Public function Const

int32

 

Tell()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss