<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crystal Space 1.2.1: csSwapBytes Struct Reference (Crystal Space 1.2.1 Public API Reference)</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head"> <tr height="59"> <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td> <td class="head"><h2>Public API Reference</h2></td> </tr> <tr height="11"> <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td> </tr> </table> <div class="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <h1>csSwapBytes Struct Reference<br> <small> [<a class="el" href="group__util.html">Utilities</a>]</small> </h1><!-- doxytag: class="csSwapBytes" -->Methods to unconditionally swap the byte order of specifically sized types. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="csendian_8h-source.html">csutil/csendian.h</a>></code> <p> <p> <a href="structcsSwapBytes-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ece0f810fb22e2fdd9468ccaeed76053"></a><!-- doxytag: member="csSwapBytes::Int16" ref="ece0f810fb22e2fdd9468ccaeed76053" args="(int16 x)" --> static <a class="el" href="group__util.html#g4355d16fcf9f644c9ac84293f0b1801f">int16</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsSwapBytes.html#ece0f810fb22e2fdd9468ccaeed76053">Int16</a> (<a class="el" href="group__util.html#g4355d16fcf9f644c9ac84293f0b1801f">int16</a> x)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9b487f0d4a4cffa29b15ebc57b8b9200"></a><!-- doxytag: member="csSwapBytes::Int32" ref="9b487f0d4a4cffa29b15ebc57b8b9200" args="(int32 x)" --> static <a class="el" href="group__util.html#g56f1a81c92849566ae864511088eb7e8">int32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsSwapBytes.html#9b487f0d4a4cffa29b15ebc57b8b9200">Int32</a> (<a class="el" href="group__util.html#g56f1a81c92849566ae864511088eb7e8">int32</a> x)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9e5a47f1009fb8f48a2c6885762cf472"></a><!-- doxytag: member="csSwapBytes::Int64" ref="9e5a47f1009fb8f48a2c6885762cf472" args="(int64 x)" --> static <a class="el" href="group__util.html#gecfc3c54bd29ad5964e1c1c3ccbf89df">int64</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsSwapBytes.html#9e5a47f1009fb8f48a2c6885762cf472">Int64</a> (<a class="el" href="group__util.html#gecfc3c54bd29ad5964e1c1c3ccbf89df">int64</a> x)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="929e07595c810ccfe44bd358b5b551e8"></a><!-- doxytag: member="csSwapBytes::Swap" ref="929e07595c810ccfe44bd358b5b551e8" args="(int64 l)" --> static <a class="el" href="group__util.html#gecfc3c54bd29ad5964e1c1c3ccbf89df">int64</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsSwapBytes.html#929e07595c810ccfe44bd358b5b551e8">Swap</a> (<a class="el" href="group__util.html#gecfc3c54bd29ad5964e1c1c3ccbf89df">int64</a> l)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05bba77db9204e7ea049ddc49c16fae3"></a><!-- doxytag: member="csSwapBytes::Swap" ref="05bba77db9204e7ea049ddc49c16fae3" args="(uint64 l)" --> static <a class="el" href="group__util.html#g058a7c8f752204f23318dc1dcab45b1c">uint64</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsSwapBytes.html#05bba77db9204e7ea049ddc49c16fae3">Swap</a> (<a class="el" href="group__util.html#g058a7c8f752204f23318dc1dcab45b1c">uint64</a> l)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="99a637159d3b6807e9e596f858279d17"></a><!-- doxytag: member="csSwapBytes::Swap" ref="99a637159d3b6807e9e596f858279d17" args="(int32 l)" --> static <a class="el" href="group__util.html#g56f1a81c92849566ae864511088eb7e8">int32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsSwapBytes.html#99a637159d3b6807e9e596f858279d17">Swap</a> (<a class="el" href="group__util.html#g56f1a81c92849566ae864511088eb7e8">int32</a> l)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a55ee2e5d2b725fabfcce4419885f0ea"></a><!-- doxytag: member="csSwapBytes::Swap" ref="a55ee2e5d2b725fabfcce4419885f0ea" args="(uint32 l)" --> static <a class="el" href="group__util.html#g1134b580f8da4de94ca6b1de4d37975e">uint32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsSwapBytes.html#a55ee2e5d2b725fabfcce4419885f0ea">Swap</a> (<a class="el" href="group__util.html#g1134b580f8da4de94ca6b1de4d37975e">uint32</a> l)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ef4bc5932a8447bc469795947f9ac45e"></a><!-- doxytag: member="csSwapBytes::Swap" ref="ef4bc5932a8447bc469795947f9ac45e" args="(int16 s)" --> static <a class="el" href="group__util.html#g4355d16fcf9f644c9ac84293f0b1801f">int16</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsSwapBytes.html#ef4bc5932a8447bc469795947f9ac45e">Swap</a> (<a class="el" href="group__util.html#g4355d16fcf9f644c9ac84293f0b1801f">int16</a> s)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="group__util.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsSwapBytes.html#e9054cbad7085e9717ebf09e825bb2be">Swap</a> (<a class="el" href="group__util.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> s)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Swap byte order. <a href="#e9054cbad7085e9717ebf09e825bb2be"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3cac62ed529aa3f7d34ac52fe3b16846"></a><!-- doxytag: member="csSwapBytes::UInt16" ref="3cac62ed529aa3f7d34ac52fe3b16846" args="(uint16 x)" --> static <a class="el" href="group__util.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsSwapBytes.html#3cac62ed529aa3f7d34ac52fe3b16846">UInt16</a> (<a class="el" href="group__util.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> x)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7438c05f6bcd9b8205f2ca1f16773e5"></a><!-- doxytag: member="csSwapBytes::UInt32" ref="a7438c05f6bcd9b8205f2ca1f16773e5" args="(uint32 x)" --> static <a class="el" href="group__util.html#g1134b580f8da4de94ca6b1de4d37975e">uint32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsSwapBytes.html#a7438c05f6bcd9b8205f2ca1f16773e5">UInt32</a> (<a class="el" href="group__util.html#g1134b580f8da4de94ca6b1de4d37975e">uint32</a> x)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5eb35bd81c1a9dd7014a0c24e71fb3a6"></a><!-- doxytag: member="csSwapBytes::UInt64" ref="5eb35bd81c1a9dd7014a0c24e71fb3a6" args="(uint64 x)" --> static <a class="el" href="group__util.html#g058a7c8f752204f23318dc1dcab45b1c">uint64</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsSwapBytes.html#5eb35bd81c1a9dd7014a0c24e71fb3a6">UInt64</a> (<a class="el" href="group__util.html#g058a7c8f752204f23318dc1dcab45b1c">uint64</a> x)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Methods to unconditionally swap the byte order of specifically sized types. <p>Definition at line <a class="el" href="csendian_8h-source.html#l00040">40</a> of file <a class="el" href="csendian_8h-source.html">csendian.h</a>.</p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="e9054cbad7085e9717ebf09e825bb2be"></a><!-- doxytag: member="csSwapBytes::Swap" ref="e9054cbad7085e9717ebf09e825bb2be" args="(uint16 s)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="group__util.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> csSwapBytes::Swap </td> <td>(</td> <td class="paramtype"><a class="el" href="group__util.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> </td> <td class="paramname"> <em>s</em> </td> <td> ) </td> <td width="100%"><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Swap byte order. <p> <p>Definition at line <a class="el" href="csendian_8h-source.html#l00045">45</a> of file <a class="el" href="csendian_8h-source.html">csendian.h</a>.</p> <p>Referenced by <a class="el" href="csendian_8h-source.html#l00142">csBigEndian::Convert()</a>, <a class="el" href="csendian_8h-source.html#l00091">Int16()</a>, <a class="el" href="csendian_8h-source.html#l00093">Int32()</a>, <a class="el" href="csendian_8h-source.html#l00095">Int64()</a>, <a class="el" href="csendian_8h-source.html#l00055">Swap()</a>, <a class="el" href="csendian_8h-source.html#l00090">UInt16()</a>, <a class="el" href="csendian_8h-source.html#l00092">UInt32()</a>, and <a class="el" href="csendian_8h-source.html#l00094">UInt64()</a>.</p> </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li>csutil/<a class="el" href="csendian_8h-source.html">csendian.h</a></ul> <hr size="1"><address><small>Generated for Crystal Space 1.2.1 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 </small></address> </div></body> </html>