Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
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.

Definition at line 1205 of file CompactBinary.h.

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.

Definition at line 1215 of file CompactBinary.h.

◆ 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.

Definition at line 1209 of file CompactBinary.h.

◆ 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.

Definition at line 1229 of file CompactBinary.h.

◆ 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.

Definition at line 1223 of file CompactBinary.h.


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