<!-- HTML header for doxygen 1.8.10-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<title>Intel® Enhanced Privacy ID SDK: epid/member/tiny/stdlib/endian.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="epidstyle.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname"><a
onclick="storeLink('index.html')"
id="projectlink"
class="index.html"
href="index.html">Intel® Enhanced Privacy ID SDK</a>
 <span id="projectnumber">6.0.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('endian_8h.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> </div>
<div class="headertitle">
<div class="title">endian.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Convert values between host and big-/little-endian byte order.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <stdint.h></code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a48127d3bd550dacd707b58a637b05393"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="endian_8h.html#a48127d3bd550dacd707b58a637b05393">be32toh</a>(big_endian_32bits)</td></tr>
<tr class="memdesc:a48127d3bd550dacd707b58a637b05393"><td class="mdescLeft"> </td><td class="mdescRight">Transform big endian uint32_t to host uint32_t. <a href="#a48127d3bd550dacd707b58a637b05393">More...</a><br /></td></tr>
<tr class="separator:a48127d3bd550dacd707b58a637b05393"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab004b68a63ea32dcd67fbe597263120b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="endian_8h.html#ab004b68a63ea32dcd67fbe597263120b">htobe32</a>(host_32bits)</td></tr>
<tr class="memdesc:ab004b68a63ea32dcd67fbe597263120b"><td class="mdescLeft"> </td><td class="mdescRight">Transform host uint32_t to big endian uint32_t. <a href="#ab004b68a63ea32dcd67fbe597263120b">More...</a><br /></td></tr>
<tr class="separator:ab004b68a63ea32dcd67fbe597263120b"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Convert values between host and big-/little-endian byte order. </p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a48127d3bd550dacd707b58a637b05393"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48127d3bd550dacd707b58a637b05393">◆ </a></span>be32toh</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define be32toh</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">big_endian_32bits</td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">((uint32_t)(((((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*)&(big_endian_32bits))[0]) << 24) + \</div><div class="line"> ((((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*)&(big_endian_32bits))[1]) << 16) + \</div><div class="line"> ((((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*)&(big_endian_32bits))[2]) << 8) + \</div><div class="line"> (((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*)&(big_endian_32bits))[3])))</div></div><!-- fragment -->
<p>Transform big endian uint32_t to host uint32_t. </p>
</div>
</div>
<a id="ab004b68a63ea32dcd67fbe597263120b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab004b68a63ea32dcd67fbe597263120b">◆ </a></span>htobe32</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define htobe32</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">host_32bits</td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(uint32_t)(((((uint32_t)(host_32bits)) & 0xFF) << 24) | \</div><div class="line"> ((((uint32_t)(host_32bits)) & 0xFF00) << 8) | \</div><div class="line"> ((((uint32_t)(host_32bits)) & 0xFF0000) >> 8) | \</div><div class="line"> ((((uint32_t)(host_32bits)) & 0xFF000000) >> 24))</div></div><!-- fragment -->
<p>Transform host uint32_t to big endian uint32_t. </p>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.10-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_12b90d9c027aaf878a834df729679a56.html">epid</a></li><li class="navelem"><a class="el" href="dir_512d3e62841a8535b716ec4cf8b9e950.html">member</a></li><li class="navelem"><a class="el" href="dir_ea12d375fc1eb79df248c0adf953af4f.html">tiny</a></li><li class="navelem"><a class="el" href="dir_a6a596e2b2b50fb0973c7fe0b17a09e5.html">stdlib</a></li><li class="navelem"><a class="el" href="endian_8h.html">endian.h</a></li>
<li class="footer">
© 2016-2017 Intel Corporation
</li>
</ul>
</div>
</body>
</html>