1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>MI_Load*</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">MI_Load* <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;nitro/mi.h&gt;</CODE><BR> <BR> <CODE>SDK_INLINE u8  MI_LoadLE8 (const void *ptr);<br> SDK_INLINE u16 MI_LoadLE16(const void *ptr);<br> SDK_INLINE u32 MI_LoadLE32(const void *ptr);<br> SDK_INLINE u64 MI_LoadLE64(const void *ptr);<br> SDK_INLINE u8  MI_LoadBE8 (const void *ptr);<br> SDK_INLINE u16 MI_LoadBE16(const void *ptr);<br> SDK_INLINE u32 MI_LoadBE32(const void *ptr);<br> SDK_INLINE u64 MI_LoadBE64(const void *ptr);<br></CODE><br>
20  </dd>
21</dl>
22<h2>Arguments</h2>
23<TABLE border="1" width="100%">
24  <TBODY>
25    <TR>
26<TD width="13%"><SPAN class="argument">ptr</SPAN></TD>
27<TD width="87%">Address to load a value from.<br> Alignment to a 16-bit, 32-bit, or 64-bit boundary is not required.</TD>
28    </TR>
29  </TBODY>
30</TABLE>
31
32<h2>Return Values</h2>
33<p>Returns the value obtained as the specified endian (<CODE>u16</CODE>, <CODE>u32</CODE>, or <CODE>u64</CODE>).</p>
34
35<H2>Description</H2>
36<P>Gets a value from the specified address using the specified endian. LE represents little-endian, and BE represents big-endian.<br></p>
37<p>These 8-bit versions do not actually perform any conversions, but they have been included for uniform source code visibility.</p>
38<H2>See Also</H2>
39<P><A href="MI_SwapEndian.html"><CODE>MI_SwapEndian*</CODE></A><BR> <A href="MI_Store.html"><CODE>MI_Store*</CODE></A><BR> <A href="MI_HTo.html"><CODE>MI_HTo*</CODE></A><BR> <A href="MI_ToH.html"><CODE>MI_*ToH*</CODE></A></P>
40<H2>Revision History</H2>
41<P>
422007/11/21 Added a description of the 64-bit version.<br> 2006/06/13 Added a description of the 8-bit version.<br> 2006/04/05 Initial version.
43</P>
44<hr><p>CONFIDENTIAL</p></body>
45</html>
46