gml_BytePack.h File Reference


Detailed Description

General functions to access bytes in memory words.

#include "gml/base/gml_Types.h"
#include <assert.h>

Go to the source code of this file.


Functions

static void gml_Pack_Bytes (UInt32 &word, UInt8 const byte0, UInt8 const byte1, UInt8 const byte2, UInt8 const byte3)
 Assemble the four argument bytes into the `word', so their order in memory is the same as in the argument list.
static void gml_Unpack_Bytes (UInt32 const word, UInt8 &byte0, UInt8 &byte1, UInt8 &byte2, UInt8 &byte3)
 Extract the four argument bytes from the `word', respecting their order in memory.
static void gml_Unpack_Bytes (UInt32 const word, UInt32 &byte0, UInt32 &byte1, UInt32 &byte2, UInt32 &byte3)
 Place the four bytes in ``word`` into the lower byte of the four arguments, respecting the memory order in ``word``.
template<typename T>
static void gml_Pack_Bytes (T *const word, UInt8 const byte0, UInt8 const byte1, UInt8 const byte2, UInt8 const byte3)
template<typename T>
static void gml_Unpack_Bytes (T const *const word, UInt8 &byte0, UInt8 &byte1, UInt8 &byte2, UInt8 &byte3)
template<typename T>
static void gml_Pack_Bytes (T *const word, UInt32 const byte0, UInt32 const byte1, UInt32 const byte2, UInt32 const byte3)
template<typename T>
static void gml_Unpack_Bytes (T const *const word, UInt32 &byte0, UInt32 &byte1, UInt32 &byte2, UInt32 &byte3)
Generated on Tue Jun 12 14:03:28 2007 for gml by Doxygen 1.5.2.