![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NetBlobAssembler.h>
Public Member Functions | |
| IRISCORE_API | FNetBlobAssembler () |
| IRISCORE_API void | Init (const FNetBlobAssemblerInitParams &InitParams) |
| IRISCORE_API void | AddPartialNetBlob (FNetSerializationContext &Context, FNetRefHandle RefHandle, const TRefCountPtr< FPartialNetBlob > &PartialNetBlob) |
| bool | IsReadyToAssemble () const |
| bool | IsSequenceBroken () const |
| IRISCORE_API TRefCountPtr< FNetBlob > | Assemble (FNetSerializationContext &Context) |
Utility class to reassemble split blobs. Partial blobs need to be added in order and represent the same blob until it's assembled or an error occurs.
| UE::Net::FNetBlobAssembler::FNetBlobAssembler | ( | ) |
| void UE::Net::FNetBlobAssembler::AddPartialNetBlob | ( | FNetSerializationContext & | Context, |
| FNetRefHandle | RefHandle, | ||
| const TRefCountPtr< FPartialNetBlob > & | PartialNetBlob | ||
| ) |
Add the next expected part of the split blob. If it's the first part of a blob the effects of prior calls to this function are discarded.
| Context | FNetSerializationContext for error reporting. Call HasError() on it afterwards to check whether something went wrong. |
| NetHandle | The NetHandle needs to remain constant for every call until the original blob has been assembled or the first part of a new blob is added. |
| TRefCountPtr< FNetBlob > UE::Net::FNetBlobAssembler::Assemble | ( | FNetSerializationContext & | Context | ) |
Assemble all parts of the split blob.
| Context | FNetSerializationContext for error reporting. Call HasError() on it afterwards to check whether something went wrong. |
| void UE::Net::FNetBlobAssembler::Init | ( | const FNetBlobAssemblerInitParams & | InitParams | ) |
Initialize the NetBlobAssembler.
|
inline |
Returns true if all parts of the split blob have been added and is ready to be assembled.
|
inline |
Returns true if the sequence order is broken.