UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TCbBufferFactory< Type, ViewType > Class Template Reference

#include <CompactBinary.h>

Static Public Member Functions

static Type Clone (const void *const Data)
 
static Type Clone (const ViewType &Value)
 
static Type MakeView (const void *const Data, FSharedBuffer OuterBuffer=FSharedBuffer())
 
static Type MakeView (const ViewType &Value, FSharedBuffer OuterBuffer=FSharedBuffer())
 

Detailed Description

template<typename Type, typename ViewType>
class TCbBufferFactory< Type, ViewType >

Factory functions for types derived from TCbBuffer.

This uses the curiously recurring template pattern to construct the correct derived type, that must inherit from TCbBuffer and this type to expose the factory functions.

Member Function Documentation

◆ Clone() [1/2]

template<typename Type , typename ViewType >
static Type TCbBufferFactory< Type, ViewType >::Clone ( const ViewType &  Value)
inlinestatic

Construct a value from an owned clone of its memory.

◆ Clone() [2/2]

template<typename Type , typename ViewType >
static Type TCbBufferFactory< Type, ViewType >::Clone ( const void *const  Data)
inlinestatic

Construct a value from an owned clone of its memory.

◆ MakeView() [1/2]

template<typename Type , typename ViewType >
static Type TCbBufferFactory< Type, ViewType >::MakeView ( const ViewType &  Value,
FSharedBuffer  OuterBuffer = FSharedBuffer() 
)
inlinestatic

Construct a value from a read-only view of its memory and its optional outer buffer.

◆ MakeView() [2/2]

template<typename Type , typename ViewType >
static Type TCbBufferFactory< Type, ViewType >::MakeView ( const void *const  Data,
FSharedBuffer  OuterBuffer = FSharedBuffer() 
)
inlinestatic

Construct a value from a read-only view of its memory and its optional outer buffer.


The documentation for this class was generated from the following file: