ADTF
Loading...
Searching...
No Matches
adtf_memory_forward< const std::u16string >

specialization for a non resizable const std::u16string (only reading access) Any Assign call will fail! More...

#include <rawmemory_intf.h>

Static Public Member Functions

static tResult Assign (const std::u16string *, const size_t, const void *, const size_t)
 
static const void * GetPtr (const std::u16string *pAssignValue)
 
static size_t GetSize (const std::u16string *pAssignValue, const size_t)
 
static tResult Assign (const std::u16string *pAssignValue, const size_t szStaticSize, const void *pValueToSet, const size_t szSizeToSet)
 Sets (copy) the memory value pValueToSet of size in bytes szSizeToSet to the of container class T in parameter pAssignValue.
 
static const void * GetPtr (const const std::u16string *pAssignValue)
 Gets the memory pointer to the of container class T in parameter pAssignValue.
 
static size_t GetSize (const const std::u16string *pAssignValue, const size_t szStaticSize)
 Gets size in bytes of the memory pointer of container class T in parameter pAssignValue.
 
static tResult Assign (const std::u16string *pAssignValue, const size_t szStaticSize, const void *pValueToSet, const size_t szSizeToSet)
 Sets (copy) the memory value pValueToSet of size in bytes szSizeToSet to the of container class T in parameter pAssignValue.
 
static const void * GetPtr (const const std::u16string *pAssignValue)
 Gets the memory pointer to the of container class T in parameter pAssignValue.
 
static size_t GetSize (const const std::u16string *pAssignValue, const size_t szStaticSize)
 Gets size in bytes of the memory pointer of container class T in parameter pAssignValue.
 
static tResult Assign (const std::u16string *pAssignValue, const size_t szStaticSize, const void *pValueToSet, const size_t szSizeToSet)
 Sets (copy) the memory value pValueToSet of size in bytes szSizeToSet to the of container class T in parameter pAssignValue.
 
static const void * GetPtr (const const std::u16string *pAssignValue)
 Gets the memory pointer to the of container class T in parameter pAssignValue.
 
static size_t GetSize (const const std::u16string *pAssignValue, const size_t szStaticSize)
 Gets size in bytes of the memory pointer of container class T in parameter pAssignValue.
 

Detailed Description

specialization for a non resizable const std::u16string (only reading access) Any Assign call will fail!

See also
adtf_memory_forward

Definition at line 161 of file rawmemory_intf.h.

Member Function Documentation

◆ Assign() [1/4]

static tResult Assign ( const std::u16string * ,
const size_t ,
const void * ,
const size_t  )
inlinestatic

Definition at line 164 of file rawmemory_intf.h.

◆ Assign() [2/4]

static tResult Assign ( const std::u16string * pAssignValue,
const size_t szStaticSize,
const void * pValueToSet,
const size_t szSizeToSet )
inlinestatic

Sets (copy) the memory value pValueToSet of size in bytes szSizeToSet to the of container class T in parameter pAssignValue.

Usually this implementation creates a deep copy.

Parameters
[in]pAssignValuepointer to the container class T. Must be a valid constructed object.
[in]szStaticSizeimplementation details: max size of static pre allocated memory within AssignValue. if set no dynamic allocation possible.
[in]pValueToSetraw pointer to the memory to set
[in]szSizeToSetsize in bytes of pValueToSet
Returns
Standard Result Code

Definition at line 101 of file rawmemory_base.h.

◆ Assign() [3/4]

static tResult Assign ( const std::u16string * pAssignValue,
const size_t szStaticSize,
const void * pValueToSet,
const size_t szSizeToSet )
inlinestatic

Sets (copy) the memory value pValueToSet of size in bytes szSizeToSet to the of container class T in parameter pAssignValue.

Usually this implementation creates a deep copy.

Parameters
[in]pAssignValuepointer to the container class T. Must be a valid constructed object.
[in]szStaticSizeimplementation details: max size of static pre allocated memory within AssignValue. if set no dynamic allocation possible.
[in]pValueToSetraw pointer to the memory to set
[in]szSizeToSetsize in bytes of pValueToSet
Returns
Standard Result Code

Definition at line 101 of file rawmemory_base.h.

◆ Assign() [4/4]

static tResult Assign ( const std::u16string * pAssignValue,
const size_t szStaticSize,
const void * pValueToSet,
const size_t szSizeToSet )
inlinestatic

Sets (copy) the memory value pValueToSet of size in bytes szSizeToSet to the of container class T in parameter pAssignValue.

Usually this implementation creates a deep copy.

Parameters
[in]pAssignValuepointer to the container class T. Must be a valid constructed object.
[in]szStaticSizeimplementation details: max size of static pre allocated memory within AssignValue. if set no dynamic allocation possible.
[in]pValueToSetraw pointer to the memory to set
[in]szSizeToSetsize in bytes of pValueToSet
Returns
Standard Result Code

Definition at line 101 of file rawmemory_base.h.

◆ GetPtr() [1/4]

static const void * GetPtr ( const const std::u16string * pAssignValue)
inlinestatic

Gets the memory pointer to the of container class T in parameter pAssignValue.

Parameters
[in]pAssignValuepointer to the container class T. Must be a valid constructed object.
Returns
valid raw memory pointer to the mamory with pAssignValue.
Remarks
Make sure the pointer is still valid after function returned.

Definition at line 119 of file rawmemory_base.h.

◆ GetPtr() [2/4]

static const void * GetPtr ( const const std::u16string * pAssignValue)
inlinestatic

Gets the memory pointer to the of container class T in parameter pAssignValue.

Parameters
[in]pAssignValuepointer to the container class T. Must be a valid constructed object.
Returns
valid raw memory pointer to the mamory with pAssignValue.
Remarks
Make sure the pointer is still valid after function returned.

Definition at line 119 of file rawmemory_base.h.

◆ GetPtr() [3/4]

static const void * GetPtr ( const const std::u16string * pAssignValue)
inlinestatic

Gets the memory pointer to the of container class T in parameter pAssignValue.

Parameters
[in]pAssignValuepointer to the container class T. Must be a valid constructed object.
Returns
valid raw memory pointer to the mamory with pAssignValue.
Remarks
Make sure the pointer is still valid after function returned.

Definition at line 119 of file rawmemory_base.h.

◆ GetPtr() [4/4]

static const void * GetPtr ( const std::u16string * pAssignValue)
inlinestatic

Definition at line 171 of file rawmemory_intf.h.

◆ GetSize() [1/4]

static size_t GetSize ( const const std::u16string * pAssignValue,
const size_t szStaticSize )
inlinestatic

Gets size in bytes of the memory pointer of container class T in parameter pAssignValue.

Parameters
[in]pAssignValuepointer to the container class T. Must be a valid constructed object.
[in]szStaticSizesize of the pointers buffer if container class is a static sized type
Returns
the size in bytes.

Definition at line 134 of file rawmemory_base.h.

◆ GetSize() [2/4]

static size_t GetSize ( const const std::u16string * pAssignValue,
const size_t szStaticSize )
inlinestatic

Gets size in bytes of the memory pointer of container class T in parameter pAssignValue.

Parameters
[in]pAssignValuepointer to the container class T. Must be a valid constructed object.
[in]szStaticSizesize of the pointers buffer if container class is a static sized type
Returns
the size in bytes.

Definition at line 134 of file rawmemory_base.h.

◆ GetSize() [3/4]

static size_t GetSize ( const const std::u16string * pAssignValue,
const size_t szStaticSize )
inlinestatic

Gets size in bytes of the memory pointer of container class T in parameter pAssignValue.

Parameters
[in]pAssignValuepointer to the container class T. Must be a valid constructed object.
[in]szStaticSizesize of the pointers buffer if container class is a static sized type
Returns
the size in bytes.

Definition at line 134 of file rawmemory_base.h.

◆ GetSize() [4/4]

static size_t GetSize ( const std::u16string * pAssignValue,
const size_t  )
inlinestatic

Definition at line 175 of file rawmemory_intf.h.