Quick Links: |
#include <bdld_datum.h>
Static Public Member Functions | |
template<class Type > | |
static Type | load (const void *source, int offset) |
template<class Type > | |
static Type | store (void *destination, int offset, Type value) |
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.
static Type bdld::Datum_Helpers::load | ( | const void * | source, | |
int | offset | |||
) | [static] |
Return the typed value found at the specified offset
within the specified source
.
static Type bdld::Datum_Helpers::store | ( | void * | destination, | |
int | offset, | |||
Type | value | |||
) | [static] |
Store the specified typed value
at the specified offset
within the specified destination
and return value
.