BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdld::Datum_Helpers Struct Reference

#include <bdld_datum.h>

Static Public Member Functions

template<class t_TYPE >
static t_TYPE load (const void *source, int offset)
 
template<class t_TYPE >
static t_TYPE store (void *destination, int offset, t_TYPE value)
 

Detailed Description

This struct contains helper functions used to access typed objects within a buffer. The functions assume that objects within the buffers have proper alignment and use casts to suppress compiler warnings about possible alignment problems.

Member Function Documentation

◆ load()

template<class t_TYPE >
t_TYPE bdld::Datum_Helpers::load ( const void *  source,
int  offset 
)
inlinestatic

Return the typed value found at the specified offset within the specified source.

◆ store()

template<class t_TYPE >
t_TYPE bdld::Datum_Helpers::store ( void *  destination,
int  offset,
t_TYPE  value 
)
inlinestatic

Store the specified typed value at the specified offset within the specified destination and return value.


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