MI_Load*

Syntax

#include <nitro/mi.h>

SDK_INLINE u8 MI_LoadLE8 (const void *ptr);
SDK_INLINE u16 MI_LoadLE16(const void *ptr);
SDK_INLINE u32 MI_LoadLE32(const void *ptr);
SDK_INLINE u64 MI_LoadLE64(const void *ptr);
SDK_INLINE u8 MI_LoadBE8 (const void *ptr);
SDK_INLINE u16 MI_LoadBE16(const void *ptr);
SDK_INLINE u32 MI_LoadBE32(const void *ptr);
SDK_INLINE u64 MI_LoadBE64(const void *ptr);

Arguments

ptr Address to load a value from.
Alignment to a 16-bit, 32-bit, or 64-bit boundary is not required.

Return Values

Returns the value obtained as the specified endian (u16, u32, or u64).

Description

Gets a value from the specified address using the specified endian. LE represents little-endian, and BE represents big-endian.

These 8-bit versions do not actually perform any conversions, but they have been included for uniform source code visibility.

See Also

MI_SwapEndian*
MI_Store*
MI_HTo*
MI_*ToH*

Revision History

2007/11/21 Added a description of the 64-bit version.
2006/06/13 Added a description of the 8-bit version.
2006/04/05 Initial version.


CONFIDENTIAL