csGetFromAddress Struct Reference
[Utilities]
Sized data type access helpers.
More...
#include <csutil/csendian.h>
Static Public Member Functions | |
static int16 | Int16 (const void *buff) |
static int32 | Int32 (const void *buff) |
static int64 | Int64 (const void *buff) |
static uint16 | UInt16 (const void *buff) |
Get specifically sized type from unaligned memory address. | |
static uint32 | UInt32 (const void *buff) |
static uint64 | UInt64 (const void *buff) |
Detailed Description
Sized data type access helpers.On some platforms, certain data types can only be accessed when correctly aligned (e.g. uint32 can only be read from addresses aligned to 4 bytes). This routines assist accessing sized types from arbitrary memory positions (e.g. when parsing files from memory) by working around the alignment requirements on platforms that have such.
Definition at line 172 of file csendian.h.
Member Function Documentation
|
Get specifically sized type from unaligned memory address.
Definition at line 176 of file csendian.h. Referenced by csGetLittleEndianShort(), and Int16(). |
The documentation for this struct was generated from the following file:
- csutil/csendian.h
Generated for Crystal Space by doxygen 1.4.6