mirror of https://github.com/libAthena/athena.git
188 lines
170 KiB
HTML
188 lines
170 KiB
HTML
<!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.11"/>
|
|
<title>Athena IO Library: include/athena/IStreamWriter.hpp Source File</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">
|
|
$(document).ready(initResizable);
|
|
$(window).load(resizeHeight);
|
|
</script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</script>
|
|
<link href="doxygen.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">Athena IO Library
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.11 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</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">
|
|
$(document).ready(function(){initNavTree('_i_stream_writer_8hpp_source.html','');});
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">IStreamWriter.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef ISTREAMWRITER_HPP</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define ISTREAMWRITER_HPP</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "utf8proc.h"</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "IStream.hpp"</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <memory></span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="keyword">namespace </span><a class="code" href="namespaceathena.html">athena</a></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> {</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="keyword">namespace </span>io</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> {</div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html"> 12</a></span> <span class="keyword">class </span><a class="code" href="classathena_1_1io_1_1_i_stream_writer.html">IStreamWriter</a> : <span class="keyword">public</span> <a class="code" href="classathena_1_1io_1_1_i_stream.html">IStream</a></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> {</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="keyword">virtual</span> ~<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html">IStreamWriter</a>() {}</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a514a94a426722af4cd813d7a72233246">seek</a>(atInt64 pos, SeekOrigin origin = SeekOrigin::Current)=0;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a1fb8d1aec92aea4894a6be0814b2f38a"> 25</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a1fb8d1aec92aea4894a6be0814b2f38a">seekAlign32</a>() {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a514a94a426722af4cd813d7a72233246">seek</a>(ROUND_UP_32(<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ad817da8d9fb4633f988a2cb1a90a3b77">position</a>()), SeekOrigin::Begin);}</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#ab611445463675b520a8002f6e7199a58"> 31</a></span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ab611445463675b520a8002f6e7199a58">atEnd</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ad817da8d9fb4633f988a2cb1a90a3b77">position</a>() >= <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a083a0f5a8d7f3919bf3e5839cb265cbe">length</a>();}</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">virtual</span> atUint64 <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ad817da8d9fb4633f988a2cb1a90a3b77">position</a>() <span class="keyword">const</span>=0;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">virtual</span> atUint64 <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a083a0f5a8d7f3919bf3e5839cb265cbe">length</a>() <span class="keyword">const</span>=0;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#ab4ec1727b753631de04ba00b6ff11e70"> 48</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ab4ec1727b753631de04ba00b6ff11e70">writeUByte</a>(atUint8 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>(&val, 1);}</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(atUint8 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ab4ec1727b753631de04ba00b6ff11e70">writeUByte</a>(val);}</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(atUint8 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ab4ec1727b753631de04ba00b6ff11e70">writeUByte</a>(val);}</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(atUint8 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ab4ec1727b753631de04ba00b6ff11e70">writeUByte</a>(val);}</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a96dadce2d998dfc146c9f78d494f237d"> 56</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a96dadce2d998dfc146c9f78d494f237d">writeByte</a>(atInt8 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ab4ec1727b753631de04ba00b6ff11e70">writeUByte</a>(val);}</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(atInt8 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a96dadce2d998dfc146c9f78d494f237d">writeByte</a>(val);}</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(atInt8 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a96dadce2d998dfc146c9f78d494f237d">writeByte</a>(val);}</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(atInt8 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a96dadce2d998dfc146c9f78d494f237d">writeByte</a>(val);}</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>(<span class="keyword">const</span> atUint8* data, atUint64 len)=0;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#ab3f3944ad62a53e47eb134bc9a7cb153"> 75</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ab3f3944ad62a53e47eb134bc9a7cb153">writeBytes</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* data, atUint64 len) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)data, len);}</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a109a6921a97d8dc0e8e44ad76c835c8f"> 82</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a109a6921a97d8dc0e8e44ad76c835c8f">writeInt16</a>(atInt16 val)</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  {</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">if</span> (m_endian == BigEndian)</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  utility::BigInt16(val);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  utility::LittleInt16(val);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 2);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(atInt16 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a109a6921a97d8dc0e8e44ad76c835c8f">writeInt16</a>(val);}</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a36c5c0577e34d2ea8cc06b217b0cdeb2"> 97</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a36c5c0577e34d2ea8cc06b217b0cdeb2">writeInt16Little</a>(atInt16 val)</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  utility::LittleInt16(val);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 2);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  }</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(atInt16 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a36c5c0577e34d2ea8cc06b217b0cdeb2">writeInt16Little</a>(val);}</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a873ab4b37aed1c0675a45c03836325a1"> 109</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a873ab4b37aed1c0675a45c03836325a1">writeInt16Big</a>(atInt16 val)</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  utility::BigInt16(val);</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 2);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(atInt16 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a873ab4b37aed1c0675a45c03836325a1">writeInt16Big</a>(val);}</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a9af3f0511d7540c15860c84ee034d089"> 121</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9af3f0511d7540c15860c84ee034d089">writeUint16</a>(atUint16 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a109a6921a97d8dc0e8e44ad76c835c8f">writeInt16</a>(val);}</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(atUint16 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9af3f0511d7540c15860c84ee034d089">writeUint16</a>(val);}</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a9741c7076a34948ac2742691d613808c"> 129</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9741c7076a34948ac2742691d613808c">writeUint16Little</a>(atUint16 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a36c5c0577e34d2ea8cc06b217b0cdeb2">writeInt16Little</a>(val);}</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(atUint16 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9741c7076a34948ac2742691d613808c">writeUint16Little</a>(val);}</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a734667fa5a1b3b6bcd48db0a82f9b151"> 137</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a734667fa5a1b3b6bcd48db0a82f9b151">writeUint16Big</a>(atUint16 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a873ab4b37aed1c0675a45c03836325a1">writeInt16Big</a>(val);}</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(atUint16 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a734667fa5a1b3b6bcd48db0a82f9b151">writeUint16Big</a>(val);}</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a7252fe2c08572ea494c390909a797bda"> 145</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a7252fe2c08572ea494c390909a797bda">writeInt32</a>(atInt32 val)</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  {</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">if</span> (m_endian == BigEndian)</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  utility::BigInt32(val);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  utility::LittleInt32(val);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 4);</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  }</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(atInt32 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a7252fe2c08572ea494c390909a797bda">writeInt32</a>(val);}</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#abb354b61ad4cc79cb9e795befa51dc02"> 160</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#abb354b61ad4cc79cb9e795befa51dc02">writeInt32Little</a>(atInt32 val)</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  {</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  utility::LittleInt32(val);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 4);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  }</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(atInt32 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#abb354b61ad4cc79cb9e795befa51dc02">writeInt32Little</a>(val);}</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#abad6620197fd212be5e52cd7baf56afe"> 172</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#abad6620197fd212be5e52cd7baf56afe">writeInt32Big</a>(atInt32 val)</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  {</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  utility::BigInt32(val);</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 4);</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  }</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(atInt32 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#abad6620197fd212be5e52cd7baf56afe">writeInt32Big</a>(val);}</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a97a89982f0dc086f7594fb9635c44228"> 184</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a97a89982f0dc086f7594fb9635c44228">writeUint32</a>(atUint32 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a7252fe2c08572ea494c390909a797bda">writeInt32</a>(val);}</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(atUint32 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a97a89982f0dc086f7594fb9635c44228">writeUint32</a>(val);}</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a13380e1e89ad99f3a37a30e3c898831b"> 192</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a13380e1e89ad99f3a37a30e3c898831b">writeUint32Little</a>(atUint32 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#abb354b61ad4cc79cb9e795befa51dc02">writeInt32Little</a>(val);}</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(atUint32 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a13380e1e89ad99f3a37a30e3c898831b">writeUint32Little</a>(val);}</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div><div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a404bf77e619f4b40c3f8fb84cc8eaad8"> 200</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a404bf77e619f4b40c3f8fb84cc8eaad8">writeUint32Big</a>(atUint32 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#abad6620197fd212be5e52cd7baf56afe">writeInt32Big</a>(val);}</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(atUint32 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a404bf77e619f4b40c3f8fb84cc8eaad8">writeUint32Big</a>(val);}</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> </div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a17143ff3c07aed330db459cd2673fd1e"> 208</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a17143ff3c07aed330db459cd2673fd1e">writeInt64</a>(atInt64 val)</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  {</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keywordflow">if</span> (m_endian == BigEndian)</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  utility::BigInt64(val);</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  utility::LittleInt64(val);</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 8);</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  }</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(atInt64 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a17143ff3c07aed330db459cd2673fd1e">writeInt64</a>(val);}</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div><div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a7e135e3ae2bd39d04c50eb88a258c1a3"> 223</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a7e135e3ae2bd39d04c50eb88a258c1a3">writeInt64Little</a>(atInt64 val)</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  {</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  utility::LittleInt64(val);</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 8);</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  }</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(atInt64 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a7e135e3ae2bd39d04c50eb88a258c1a3">writeInt64Little</a>(val);}</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span> </div><div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a06f41458affa32761d354048069f27f7"> 235</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a06f41458affa32761d354048069f27f7">writeInt64Big</a>(atInt64 val)</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  {</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  utility::BigInt64(val);</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 8);</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  }</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(atInt64 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a06f41458affa32761d354048069f27f7">writeInt64Big</a>(val);}</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span> </div><div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a675c93f44adba344827ecfc1f0d5a08c"> 247</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a675c93f44adba344827ecfc1f0d5a08c">writeUint64</a>(atUint64 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a17143ff3c07aed330db459cd2673fd1e">writeInt64</a>(val);}</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(atUint64 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a675c93f44adba344827ecfc1f0d5a08c">writeUint64</a>(val);}</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div><div class="line"><a name="l00255"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a8d2145a269f592943944fa6133ee6633"> 255</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a8d2145a269f592943944fa6133ee6633">writeUint64Little</a>(atUint64 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a7e135e3ae2bd39d04c50eb88a258c1a3">writeInt64Little</a>(val);}</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(atUint64 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a8d2145a269f592943944fa6133ee6633">writeUint64Little</a>(val);}</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> </div><div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a81377cfb5e20fa71e46d3fa853dbab7a"> 263</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a81377cfb5e20fa71e46d3fa853dbab7a">writeUint64Big</a>(atUint64 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a06f41458affa32761d354048069f27f7">writeInt64Big</a>(val);}</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(atUint64 val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a81377cfb5e20fa71e46d3fa853dbab7a">writeUint64Big</a>(val);}</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span> </div><div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#aabd99f3c12900b6a59bcd5fa31479200"> 271</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#aabd99f3c12900b6a59bcd5fa31479200">writeFloat</a>(<span class="keywordtype">float</span> val)</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  {</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keywordflow">if</span> (m_endian == BigEndian)</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  utility::BigFloat(val);</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  utility::LittleFloat(val);</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 4);</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  }</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(<span class="keywordtype">float</span> val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#aabd99f3c12900b6a59bcd5fa31479200">writeFloat</a>(val);}</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> </div><div class="line"><a name="l00286"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a9c5d4cfa88dcc20145698ce023e8b7e9"> 286</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9c5d4cfa88dcc20145698ce023e8b7e9">writeFloatLittle</a>(<span class="keywordtype">float</span> val)</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  {</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  utility::LittleFloat(val);</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 4);</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  }</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(<span class="keywordtype">float</span> val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9c5d4cfa88dcc20145698ce023e8b7e9">writeFloatLittle</a>(val);}</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span> </div><div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a4843b2da629bb0adcfc4a2ad88643ae3"> 298</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a4843b2da629bb0adcfc4a2ad88643ae3">writeFloatBig</a>(<span class="keywordtype">float</span> val)</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  {</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  utility::BigFloat(val);</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 4);</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  }</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(<span class="keywordtype">float</span> val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a4843b2da629bb0adcfc4a2ad88643ae3">writeFloatBig</a>(val);}</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span> </div><div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#ab5608078edf09f70aec60e53f737a17a"> 310</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ab5608078edf09f70aec60e53f737a17a">writeDouble</a>(<span class="keywordtype">double</span> val)</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  {</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keywordflow">if</span> (m_endian == BigEndian)</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  utility::BigDouble(val);</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  utility::LittleDouble(val);</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 8);</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  }</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(<span class="keywordtype">double</span> val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ab5608078edf09f70aec60e53f737a17a">writeDouble</a>(val);}</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span> </div><div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a9bc23e4608bd5e736a71565c004624a9"> 325</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9bc23e4608bd5e736a71565c004624a9">writeDoubleLittle</a>(<span class="keywordtype">double</span> val)</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  {</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  utility::LittleDouble(val);</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 8);</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  }</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(<span class="keywordtype">double</span> val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9bc23e4608bd5e736a71565c004624a9">writeDoubleLittle</a>(val);}</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span> </div><div class="line"><a name="l00337"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#af15f95bab05c66fd06e4e7ec969a6d88"> 337</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#af15f95bab05c66fd06e4e7ec969a6d88">writeDoubleBig</a>(<span class="keywordtype">double</span> val)</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  {</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  utility::BigDouble(val);</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 8);</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  }</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(<span class="keywordtype">double</span> val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#af15f95bab05c66fd06e4e7ec969a6d88">writeDoubleBig</a>(val);}</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span> </div><div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#adcf1b5b81e29b07f938626af3f207641"> 349</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#adcf1b5b81e29b07f938626af3f207641">writeBool</a>(<span class="keywordtype">bool</span> val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&val, 1);}</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(<span class="keywordtype">bool</span> val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#adcf1b5b81e29b07f938626af3f207641">writeBool</a>(val);}</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(<span class="keywordtype">bool</span> val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#adcf1b5b81e29b07f938626af3f207641">writeBool</a>(val);}</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(<span class="keywordtype">bool</span> val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#adcf1b5b81e29b07f938626af3f207641">writeBool</a>(val);}</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span> </div><div class="line"><a name="l00359"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#ae34bbeefacf9d2ecff3e73577006073e"> 359</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ae34bbeefacf9d2ecff3e73577006073e">writeVec2f</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec2f</a>& vec)</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  {</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <a class="code" href="unionalignas.html">atVec2f</a> tmp = vec;</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="keywordflow">if</span> (m_endian == BigEndian)</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  {</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  utility::BigFloat(tmp.vec[0]);</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  utility::BigFloat(tmp.vec[1]);</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  }</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  {</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  utility::LittleFloat(tmp.vec[0]);</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  utility::LittleFloat(tmp.vec[1]);</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  }</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 8);</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  }</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec2f</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ae34bbeefacf9d2ecff3e73577006073e">writeVec2f</a>(val);}</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span> </div><div class="line"><a name="l00381"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a02ec9862c7362e4ab6c378fe09fd9b32"> 381</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a02ec9862c7362e4ab6c378fe09fd9b32">writeVec2fLittle</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec2f</a>& vec)</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  {</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <a class="code" href="unionalignas.html">atVec2f</a> tmp = vec;</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  utility::LittleFloat(tmp.vec[0]);</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  utility::LittleFloat(tmp.vec[1]);</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 8);</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  }</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec2f</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a02ec9862c7362e4ab6c378fe09fd9b32">writeVec2fLittle</a>(val);}</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span> </div><div class="line"><a name="l00395"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a044084c0404e3a452d862a718b780398"> 395</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a044084c0404e3a452d862a718b780398">writeVec2fBig</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec2f</a>& vec)</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  {</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <a class="code" href="unionalignas.html">atVec2f</a> tmp = vec;</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  utility::BigFloat(tmp.vec[0]);</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  utility::BigFloat(tmp.vec[1]);</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 8);</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  }</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec2f</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a044084c0404e3a452d862a718b780398">writeVec2fBig</a>(val);}</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span> </div><div class="line"><a name="l00409"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a1f4dcc5f32812ede3f6e114b38f4f1c9"> 409</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a1f4dcc5f32812ede3f6e114b38f4f1c9">writeVec3f</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec3f</a>& vec)</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  {</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <a class="code" href="unionalignas.html">atVec3f</a> tmp = vec;</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  <span class="keywordflow">if</span> (m_endian == BigEndian)</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  {</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  utility::BigFloat(tmp.vec[0]);</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  utility::BigFloat(tmp.vec[1]);</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  utility::BigFloat(tmp.vec[2]);</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  }</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  {</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  utility::LittleFloat(tmp.vec[0]);</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  utility::LittleFloat(tmp.vec[1]);</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  utility::LittleFloat(tmp.vec[2]);</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  }</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 12);</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  }</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec3f</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a1f4dcc5f32812ede3f6e114b38f4f1c9">writeVec3f</a>(val);}</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span> </div><div class="line"><a name="l00433"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a611d258bc7699409de30c5b22d3176e0"> 433</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a611d258bc7699409de30c5b22d3176e0">writeVec3fLittle</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec3f</a>& vec)</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  {</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  <a class="code" href="unionalignas.html">atVec3f</a> tmp = vec;</div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  utility::LittleFloat(tmp.vec[0]);</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  utility::LittleFloat(tmp.vec[1]);</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  utility::LittleFloat(tmp.vec[2]);</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 12);</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  }</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec3f</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a611d258bc7699409de30c5b22d3176e0">writeVec3fLittle</a>(val);}</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span> </div><div class="line"><a name="l00448"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#ad73e2cd993af3494d0934e21563b6ccf"> 448</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ad73e2cd993af3494d0934e21563b6ccf">writeVec3fBig</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec3f</a>& vec)</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  {</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  <a class="code" href="unionalignas.html">atVec3f</a> tmp = vec;</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  utility::BigFloat(tmp.vec[0]);</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  utility::BigFloat(tmp.vec[1]);</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  utility::BigFloat(tmp.vec[2]);</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 12);</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  }</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec3f</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ad73e2cd993af3494d0934e21563b6ccf">writeVec3fBig</a>(val);}</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span> </div><div class="line"><a name="l00463"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#ad6a3edbaec9caeca2a9078caf1418746"> 463</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ad6a3edbaec9caeca2a9078caf1418746">writeVec4f</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec4f</a>& vec)</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  {</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  <a class="code" href="unionalignas.html">atVec4f</a> tmp = vec;</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  <span class="keywordflow">if</span> (m_endian == BigEndian)</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  {</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  utility::BigFloat(tmp.vec[0]);</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  utility::BigFloat(tmp.vec[1]);</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  utility::BigFloat(tmp.vec[2]);</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  utility::BigFloat(tmp.vec[3]);</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  }</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  {</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  utility::LittleFloat(tmp.vec[0]);</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  utility::LittleFloat(tmp.vec[1]);</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  utility::LittleFloat(tmp.vec[2]);</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  utility::LittleFloat(tmp.vec[3]);</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  }</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 16);</div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  }</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec4f</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ad6a3edbaec9caeca2a9078caf1418746">writeVec4f</a>(val);}</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span> </div><div class="line"><a name="l00489"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#ac16b9636791f5b4da75a04676b57fadc"> 489</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ac16b9636791f5b4da75a04676b57fadc">writeVec4fLittle</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec4f</a>& vec)</div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  {</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  <a class="code" href="unionalignas.html">atVec4f</a> tmp = vec;</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  utility::LittleFloat(tmp.vec[0]);</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  utility::LittleFloat(tmp.vec[1]);</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  utility::LittleFloat(tmp.vec[2]);</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  utility::LittleFloat(tmp.vec[3]);</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 16);</div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  }</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec4f</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ac16b9636791f5b4da75a04676b57fadc">writeVec4fLittle</a>(val);}</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span> </div><div class="line"><a name="l00505"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a95a9746cc47a8c8d95f6f464d7c0b8f1"> 505</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a95a9746cc47a8c8d95f6f464d7c0b8f1">writeVec4fBig</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec4f</a>& vec)</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  {</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  <a class="code" href="unionalignas.html">atVec4f</a> tmp = vec;</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  utility::BigFloat(tmp.vec[0]);</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  utility::BigFloat(tmp.vec[1]);</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  utility::BigFloat(tmp.vec[2]);</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  utility::BigFloat(tmp.vec[3]);</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 16);</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  }</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec4f</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a95a9746cc47a8c8d95f6f464d7c0b8f1">writeVec4fBig</a>(val);}</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span> </div><div class="line"><a name="l00521"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#aea67e75b0611bc89b9763b6ba42830c3"> 521</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#aea67e75b0611bc89b9763b6ba42830c3">writeVec2d</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec2d</a>& vec)</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  {</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  <a class="code" href="unionalignas.html">atVec2d</a> tmp = vec;</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  <span class="keywordflow">if</span> (m_endian == BigEndian)</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  {</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  utility::BigDouble(tmp.vec[0]);</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  utility::BigDouble(tmp.vec[1]);</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  }</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  {</div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span>  utility::LittleDouble(tmp.vec[0]);</div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  utility::LittleDouble(tmp.vec[1]);</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  }</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 16);</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  }</div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec2d</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#aea67e75b0611bc89b9763b6ba42830c3">writeVec2d</a>(val);}</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span> </div><div class="line"><a name="l00543"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a4c58cdda6713ff085552dc92144424c3"> 543</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a4c58cdda6713ff085552dc92144424c3">writeVec2dLittle</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec2d</a>& vec)</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  {</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  <a class="code" href="unionalignas.html">atVec2d</a> tmp = vec;</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  utility::LittleDouble(tmp.vec[0]);</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  utility::LittleDouble(tmp.vec[1]);</div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 16);</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  }</div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec2d</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a4c58cdda6713ff085552dc92144424c3">writeVec2dLittle</a>(val);}</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span> </div><div class="line"><a name="l00557"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a831922074aba948ca4afcee3bc2b8348"> 557</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a831922074aba948ca4afcee3bc2b8348">writeVec2dBig</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec2d</a>& vec)</div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  {</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  <a class="code" href="unionalignas.html">atVec2d</a> tmp = vec;</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  utility::BigDouble(tmp.vec[0]);</div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  utility::BigDouble(tmp.vec[1]);</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 16);</div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  }</div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec2d</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a831922074aba948ca4afcee3bc2b8348">writeVec2dBig</a>(val);}</div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span> </div><div class="line"><a name="l00571"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#afde125e001200130c188584194224574"> 571</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#afde125e001200130c188584194224574">writeVec3d</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec3d</a>& vec)</div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  {</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  <a class="code" href="unionalignas.html">atVec3d</a> tmp = vec;</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  <span class="keywordflow">if</span> (m_endian == BigEndian)</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  {</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  utility::BigDouble(tmp.vec[0]);</div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  utility::BigDouble(tmp.vec[1]);</div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  utility::BigDouble(tmp.vec[2]);</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  }</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  {</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  utility::LittleDouble(tmp.vec[0]);</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  utility::LittleDouble(tmp.vec[1]);</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  utility::LittleDouble(tmp.vec[2]);</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  }</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 24);</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  }</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec3d</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#afde125e001200130c188584194224574">writeVec3d</a>(val);}</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span> </div><div class="line"><a name="l00595"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a11c635a2ccb08c72a444886e829d6d07"> 595</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a11c635a2ccb08c72a444886e829d6d07">writeVec3dLittle</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec3d</a>& vec)</div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  {</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  <a class="code" href="unionalignas.html">atVec3d</a> tmp = vec;</div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  utility::LittleDouble(tmp.vec[0]);</div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  utility::LittleDouble(tmp.vec[1]);</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span>  utility::LittleDouble(tmp.vec[2]);</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 24);</div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  }</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec3d</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a11c635a2ccb08c72a444886e829d6d07">writeVec3dLittle</a>(val);}</div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span> </div><div class="line"><a name="l00610"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a6039dd59fa4f0a312db0944c17d6d03e"> 610</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a6039dd59fa4f0a312db0944c17d6d03e">writeVec3dBig</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec3d</a>& vec)</div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  {</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  <a class="code" href="unionalignas.html">atVec3d</a> tmp = vec;</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  utility::BigDouble(tmp.vec[0]);</div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  utility::BigDouble(tmp.vec[1]);</div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  utility::BigDouble(tmp.vec[2]);</div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 24);</div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  }</div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec3d</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a6039dd59fa4f0a312db0944c17d6d03e">writeVec3dBig</a>(val);}</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span> </div><div class="line"><a name="l00625"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#adc4fa9151c96d58f0aa2979f608e52fe"> 625</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#adc4fa9151c96d58f0aa2979f608e52fe">writeVec4d</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec4d</a>& vec)</div><div class="line"><a name="l00626"></a><span class="lineno"> 626</span>  {</div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>  <a class="code" href="unionalignas.html">atVec4d</a> tmp = vec;</div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span>  <span class="keywordflow">if</span> (m_endian == BigEndian)</div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span>  {</div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span>  utility::BigDouble(tmp.vec[0]);</div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span>  utility::BigDouble(tmp.vec[1]);</div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span>  utility::BigDouble(tmp.vec[2]);</div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  utility::BigDouble(tmp.vec[3]);</div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  }</div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  {</div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  utility::LittleDouble(tmp.vec[0]);</div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span>  utility::LittleDouble(tmp.vec[1]);</div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span>  utility::LittleDouble(tmp.vec[2]);</div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  utility::LittleDouble(tmp.vec[3]);</div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  }</div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 32);</div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  }</div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec4d</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#adc4fa9151c96d58f0aa2979f608e52fe">writeVec4d</a>(val);}</div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span> </div><div class="line"><a name="l00651"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#aec96ff4021bdebaff7746f1ca52d246c"> 651</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#aec96ff4021bdebaff7746f1ca52d246c">writeVec4dLittle</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec4d</a>& vec)</div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  {</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  <a class="code" href="unionalignas.html">atVec4d</a> tmp = vec;</div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span>  utility::LittleDouble(tmp.vec[0]);</div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span>  utility::LittleDouble(tmp.vec[1]);</div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  utility::LittleDouble(tmp.vec[2]);</div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  utility::LittleDouble(tmp.vec[3]);</div><div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 32);</div><div class="line"><a name="l00659"></a><span class="lineno"> 659</span>  }</div><div class="line"><a name="l00660"></a><span class="lineno"> 660</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec4d</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#aec96ff4021bdebaff7746f1ca52d246c">writeVec4dLittle</a>(val);}</div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span> </div><div class="line"><a name="l00667"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a375796614783d08aedfd14559ec006af"> 667</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a375796614783d08aedfd14559ec006af">writeVec4dBig</a>(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec4d</a>& vec)</div><div class="line"><a name="l00668"></a><span class="lineno"> 668</span>  {</div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  <a class="code" href="unionalignas.html">atVec4d</a> tmp = vec;</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span>  utility::BigDouble(tmp.vec[0]);</div><div class="line"><a name="l00671"></a><span class="lineno"> 671</span>  utility::BigDouble(tmp.vec[1]);</div><div class="line"><a name="l00672"></a><span class="lineno"> 672</span>  utility::BigDouble(tmp.vec[2]);</div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span>  utility::BigDouble(tmp.vec[3]);</div><div class="line"><a name="l00674"></a><span class="lineno"> 674</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>((atUint8*)&tmp, 32);</div><div class="line"><a name="l00675"></a><span class="lineno"> 675</span>  }</div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(<span class="keyword">const</span> <a class="code" href="unionalignas.html">atVec4d</a>& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a375796614783d08aedfd14559ec006af">writeVec4dBig</a>(val);}</div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span> </div><div class="line"><a name="l00686"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a17261b2ee9c1d716589120b18cd9339b"> 686</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a17261b2ee9c1d716589120b18cd9339b">writeStringAsWString</a>(<span class="keyword">const</span> std::string& str, atInt32 fixedLen = -1)</div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  {</div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  <span class="keywordflow">if</span> (fixedLen == 0)</div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span>  std::string tmpStr = <span class="stringliteral">"\xEF\xBB\xBF"</span> + str;</div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span>  <span class="keyword">const</span> utf8proc_uint8_t* buf = <span class="keyword">reinterpret_cast<</span><span class="keyword">const </span>utf8proc_uint8_t*<span class="keyword">></span>(tmpStr.c_str());</div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span>  <span class="keywordflow">if</span> (fixedLen < 0)</div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span>  {</div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span>  <span class="keywordflow">while</span> (*buf)</div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  {</div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span>  utf8proc_int32_t wc;</div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span>  utf8proc_ssize_t len = utf8proc_iterate(buf, -1, &wc);</div><div class="line"><a name="l00698"></a><span class="lineno"> 698</span>  <span class="keywordflow">if</span> (len < 0)</div><div class="line"><a name="l00699"></a><span class="lineno"> 699</span>  {</div><div class="line"><a name="l00700"></a><span class="lineno"> 700</span>  atWarning(<span class="stringliteral">"invalid UTF-8 character while decoding"</span>);</div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  }</div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span>  buf += len;</div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span>  <span class="keywordflow">if</span> (wc != 0xFEFF)</div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9af3f0511d7540c15860c84ee034d089">writeUint16</a>(atUint16(wc));</div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span>  }</div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9af3f0511d7540c15860c84ee034d089">writeUint16</a>(0);</div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span>  }</div><div class="line"><a name="l00709"></a><span class="lineno"> 709</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span>  {</div><div class="line"><a name="l00711"></a><span class="lineno"> 711</span>  <span class="keywordflow">for</span> (atInt32 i=0 ; i<fixedLen ; ++i)</div><div class="line"><a name="l00712"></a><span class="lineno"> 712</span>  {</div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span>  utf8proc_int32_t wc = 0;</div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span>  <span class="keywordflow">if</span> (*buf)</div><div class="line"><a name="l00715"></a><span class="lineno"> 715</span>  {</div><div class="line"><a name="l00716"></a><span class="lineno"> 716</span>  utf8proc_ssize_t len = utf8proc_iterate(buf, -1, &wc);</div><div class="line"><a name="l00717"></a><span class="lineno"> 717</span>  <span class="keywordflow">if</span> (len < 0)</div><div class="line"><a name="l00718"></a><span class="lineno"> 718</span>  {</div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span>  atWarning(<span class="stringliteral">"invalid UTF-8 character while decoding"</span>);</div><div class="line"><a name="l00720"></a><span class="lineno"> 720</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00721"></a><span class="lineno"> 721</span>  }</div><div class="line"><a name="l00722"></a><span class="lineno"> 722</span>  buf += len;</div><div class="line"><a name="l00723"></a><span class="lineno"> 723</span>  }</div><div class="line"><a name="l00724"></a><span class="lineno"> 724</span> </div><div class="line"><a name="l00725"></a><span class="lineno"> 725</span>  <span class="keywordflow">if</span> (wc == 0xFEFF)</div><div class="line"><a name="l00726"></a><span class="lineno"> 726</span>  {</div><div class="line"><a name="l00727"></a><span class="lineno"> 727</span>  --i;</div><div class="line"><a name="l00728"></a><span class="lineno"> 728</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00729"></a><span class="lineno"> 729</span>  }</div><div class="line"><a name="l00730"></a><span class="lineno"> 730</span> </div><div class="line"><a name="l00731"></a><span class="lineno"> 731</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9af3f0511d7540c15860c84ee034d089">writeUint16</a>(atUint16(wc));</div><div class="line"><a name="l00732"></a><span class="lineno"> 732</span>  }</div><div class="line"><a name="l00733"></a><span class="lineno"> 733</span>  }</div><div class="line"><a name="l00734"></a><span class="lineno"> 734</span>  }</div><div class="line"><a name="l00735"></a><span class="lineno"> 735</span> </div><div class="line"><a name="l00744"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a865f51a5ab4bd01933fba868eb2c248c"> 744</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a865f51a5ab4bd01933fba868eb2c248c">writeStringAsWStringLittle</a>(<span class="keyword">const</span> std::string& str, atInt32 fixedLen = -1)</div><div class="line"><a name="l00745"></a><span class="lineno"> 745</span>  {</div><div class="line"><a name="l00746"></a><span class="lineno"> 746</span>  <span class="keywordflow">if</span> (fixedLen == 0)</div><div class="line"><a name="l00747"></a><span class="lineno"> 747</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00748"></a><span class="lineno"> 748</span>  std::string tmpStr = <span class="stringliteral">"\xEF\xBB\xBF"</span> + str;</div><div class="line"><a name="l00749"></a><span class="lineno"> 749</span>  <span class="keyword">const</span> utf8proc_uint8_t* buf = <span class="keyword">reinterpret_cast<</span><span class="keyword">const </span>utf8proc_uint8_t*<span class="keyword">></span>(tmpStr.c_str());</div><div class="line"><a name="l00750"></a><span class="lineno"> 750</span>  <span class="keywordflow">if</span> (fixedLen < 0)</div><div class="line"><a name="l00751"></a><span class="lineno"> 751</span>  {</div><div class="line"><a name="l00752"></a><span class="lineno"> 752</span>  <span class="keywordflow">while</span> (*buf)</div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span>  {</div><div class="line"><a name="l00754"></a><span class="lineno"> 754</span>  utf8proc_int32_t wc;</div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span>  utf8proc_ssize_t len = utf8proc_iterate(buf, -1, &wc);</div><div class="line"><a name="l00756"></a><span class="lineno"> 756</span>  <span class="keywordflow">if</span> (len < 0)</div><div class="line"><a name="l00757"></a><span class="lineno"> 757</span>  {</div><div class="line"><a name="l00758"></a><span class="lineno"> 758</span>  atWarning(<span class="stringliteral">"invalid UTF-8 character while decoding"</span>);</div><div class="line"><a name="l00759"></a><span class="lineno"> 759</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00760"></a><span class="lineno"> 760</span>  }</div><div class="line"><a name="l00761"></a><span class="lineno"> 761</span>  buf += len;</div><div class="line"><a name="l00762"></a><span class="lineno"> 762</span>  <span class="keywordflow">if</span> (wc != 0xFEFF)</div><div class="line"><a name="l00763"></a><span class="lineno"> 763</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9741c7076a34948ac2742691d613808c">writeUint16Little</a>(atUint16(wc));</div><div class="line"><a name="l00764"></a><span class="lineno"> 764</span>  }</div><div class="line"><a name="l00765"></a><span class="lineno"> 765</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9741c7076a34948ac2742691d613808c">writeUint16Little</a>(0);</div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span>  }</div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span>  {</div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span>  <span class="keywordflow">for</span> (atInt32 i=0 ; i<fixedLen ; ++i)</div><div class="line"><a name="l00770"></a><span class="lineno"> 770</span>  {</div><div class="line"><a name="l00771"></a><span class="lineno"> 771</span>  utf8proc_int32_t wc = 0;</div><div class="line"><a name="l00772"></a><span class="lineno"> 772</span>  <span class="keywordflow">if</span> (*buf)</div><div class="line"><a name="l00773"></a><span class="lineno"> 773</span>  {</div><div class="line"><a name="l00774"></a><span class="lineno"> 774</span>  utf8proc_ssize_t len = utf8proc_iterate(buf, -1, &wc);</div><div class="line"><a name="l00775"></a><span class="lineno"> 775</span>  <span class="keywordflow">if</span> (len < 0)</div><div class="line"><a name="l00776"></a><span class="lineno"> 776</span>  {</div><div class="line"><a name="l00777"></a><span class="lineno"> 777</span>  atWarning(<span class="stringliteral">"invalid UTF-8 character while decoding"</span>);</div><div class="line"><a name="l00778"></a><span class="lineno"> 778</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00779"></a><span class="lineno"> 779</span>  }</div><div class="line"><a name="l00780"></a><span class="lineno"> 780</span>  buf += len;</div><div class="line"><a name="l00781"></a><span class="lineno"> 781</span>  }</div><div class="line"><a name="l00782"></a><span class="lineno"> 782</span> </div><div class="line"><a name="l00783"></a><span class="lineno"> 783</span>  <span class="keywordflow">if</span> (wc == 0xFEFF)</div><div class="line"><a name="l00784"></a><span class="lineno"> 784</span>  {</div><div class="line"><a name="l00785"></a><span class="lineno"> 785</span>  --i;</div><div class="line"><a name="l00786"></a><span class="lineno"> 786</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00787"></a><span class="lineno"> 787</span>  }</div><div class="line"><a name="l00788"></a><span class="lineno"> 788</span> </div><div class="line"><a name="l00789"></a><span class="lineno"> 789</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9741c7076a34948ac2742691d613808c">writeUint16Little</a>(atUint16(wc));</div><div class="line"><a name="l00790"></a><span class="lineno"> 790</span>  }</div><div class="line"><a name="l00791"></a><span class="lineno"> 791</span>  }</div><div class="line"><a name="l00792"></a><span class="lineno"> 792</span>  }</div><div class="line"><a name="l00793"></a><span class="lineno"> 793</span> </div><div class="line"><a name="l00802"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#ae24ef659380c7cdc310fbf519c753e08"> 802</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ae24ef659380c7cdc310fbf519c753e08">writeStringAsWStringBig</a>(<span class="keyword">const</span> std::string& str, atInt32 fixedLen = -1)</div><div class="line"><a name="l00803"></a><span class="lineno"> 803</span>  {</div><div class="line"><a name="l00804"></a><span class="lineno"> 804</span>  <span class="keywordflow">if</span> (fixedLen == 0)</div><div class="line"><a name="l00805"></a><span class="lineno"> 805</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00806"></a><span class="lineno"> 806</span> </div><div class="line"><a name="l00807"></a><span class="lineno"> 807</span>  std::string tmpStr = <span class="stringliteral">"\xEF\xBB\xBF"</span> + str;</div><div class="line"><a name="l00808"></a><span class="lineno"> 808</span>  <span class="keyword">const</span> utf8proc_uint8_t* buf = <span class="keyword">reinterpret_cast<</span><span class="keyword">const </span>utf8proc_uint8_t*<span class="keyword">></span>(tmpStr.c_str());</div><div class="line"><a name="l00809"></a><span class="lineno"> 809</span>  <span class="keywordflow">if</span> (fixedLen < 0)</div><div class="line"><a name="l00810"></a><span class="lineno"> 810</span>  {</div><div class="line"><a name="l00811"></a><span class="lineno"> 811</span>  <span class="keywordflow">while</span> (*buf)</div><div class="line"><a name="l00812"></a><span class="lineno"> 812</span>  {</div><div class="line"><a name="l00813"></a><span class="lineno"> 813</span>  utf8proc_int32_t wc;</div><div class="line"><a name="l00814"></a><span class="lineno"> 814</span>  utf8proc_ssize_t len = utf8proc_iterate(buf, -1, &wc);</div><div class="line"><a name="l00815"></a><span class="lineno"> 815</span>  <span class="keywordflow">if</span> (len < 0)</div><div class="line"><a name="l00816"></a><span class="lineno"> 816</span>  {</div><div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  atWarning(<span class="stringliteral">"invalid UTF-8 character while decoding"</span>);</div><div class="line"><a name="l00818"></a><span class="lineno"> 818</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00819"></a><span class="lineno"> 819</span>  }</div><div class="line"><a name="l00820"></a><span class="lineno"> 820</span>  buf += len;</div><div class="line"><a name="l00821"></a><span class="lineno"> 821</span>  <span class="keywordflow">if</span> (wc != 0xFEFF)</div><div class="line"><a name="l00822"></a><span class="lineno"> 822</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a734667fa5a1b3b6bcd48db0a82f9b151">writeUint16Big</a>(atUint16(wc));</div><div class="line"><a name="l00823"></a><span class="lineno"> 823</span>  }</div><div class="line"><a name="l00824"></a><span class="lineno"> 824</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a734667fa5a1b3b6bcd48db0a82f9b151">writeUint16Big</a>(0);</div><div class="line"><a name="l00825"></a><span class="lineno"> 825</span>  }</div><div class="line"><a name="l00826"></a><span class="lineno"> 826</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00827"></a><span class="lineno"> 827</span>  {</div><div class="line"><a name="l00828"></a><span class="lineno"> 828</span>  <span class="keywordflow">for</span> (atInt32 i=0 ; i<fixedLen ; ++i)</div><div class="line"><a name="l00829"></a><span class="lineno"> 829</span>  {</div><div class="line"><a name="l00830"></a><span class="lineno"> 830</span>  utf8proc_int32_t wc = 0;</div><div class="line"><a name="l00831"></a><span class="lineno"> 831</span>  <span class="keywordflow">if</span> (*buf)</div><div class="line"><a name="l00832"></a><span class="lineno"> 832</span>  {</div><div class="line"><a name="l00833"></a><span class="lineno"> 833</span>  utf8proc_ssize_t len = utf8proc_iterate(buf, -1, &wc);</div><div class="line"><a name="l00834"></a><span class="lineno"> 834</span>  <span class="keywordflow">if</span> (len < 0)</div><div class="line"><a name="l00835"></a><span class="lineno"> 835</span>  {</div><div class="line"><a name="l00836"></a><span class="lineno"> 836</span>  atWarning(<span class="stringliteral">"invalid UTF-8 character while decoding"</span>);</div><div class="line"><a name="l00837"></a><span class="lineno"> 837</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00838"></a><span class="lineno"> 838</span>  }</div><div class="line"><a name="l00839"></a><span class="lineno"> 839</span>  buf += len;</div><div class="line"><a name="l00840"></a><span class="lineno"> 840</span>  }</div><div class="line"><a name="l00841"></a><span class="lineno"> 841</span> </div><div class="line"><a name="l00842"></a><span class="lineno"> 842</span>  <span class="keywordflow">if</span> (wc == 0xFEFF)</div><div class="line"><a name="l00843"></a><span class="lineno"> 843</span>  {</div><div class="line"><a name="l00844"></a><span class="lineno"> 844</span>  --i;</div><div class="line"><a name="l00845"></a><span class="lineno"> 845</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00846"></a><span class="lineno"> 846</span>  }</div><div class="line"><a name="l00847"></a><span class="lineno"> 847</span> </div><div class="line"><a name="l00848"></a><span class="lineno"> 848</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a734667fa5a1b3b6bcd48db0a82f9b151">writeUint16Big</a>(atUint16(wc));</div><div class="line"><a name="l00849"></a><span class="lineno"> 849</span>  }</div><div class="line"><a name="l00850"></a><span class="lineno"> 850</span>  }</div><div class="line"><a name="l00851"></a><span class="lineno"> 851</span>  }</div><div class="line"><a name="l00852"></a><span class="lineno"> 852</span> </div><div class="line"><a name="l00858"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a23b7b46e18bfa2cac97141a90b46ca97"> 858</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a23b7b46e18bfa2cac97141a90b46ca97">writeString</a>(<span class="keyword">const</span> std::string& str, atInt32 fixedLen = -1)</div><div class="line"><a name="l00859"></a><span class="lineno"> 859</span>  {</div><div class="line"><a name="l00860"></a><span class="lineno"> 860</span>  <span class="keywordflow">if</span> (fixedLen == 0)</div><div class="line"><a name="l00861"></a><span class="lineno"> 861</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00862"></a><span class="lineno"> 862</span> </div><div class="line"><a name="l00863"></a><span class="lineno"> 863</span>  <span class="keywordflow">if</span> (fixedLen < 0)</div><div class="line"><a name="l00864"></a><span class="lineno"> 864</span>  {</div><div class="line"><a name="l00865"></a><span class="lineno"> 865</span>  <span class="keywordflow">for</span> (atUint8 c : str)</div><div class="line"><a name="l00866"></a><span class="lineno"> 866</span>  {</div><div class="line"><a name="l00867"></a><span class="lineno"> 867</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ab4ec1727b753631de04ba00b6ff11e70">writeUByte</a>(c);</div><div class="line"><a name="l00868"></a><span class="lineno"> 868</span> </div><div class="line"><a name="l00869"></a><span class="lineno"> 869</span>  <span class="keywordflow">if</span> (c == <span class="charliteral">'\0'</span>)</div><div class="line"><a name="l00870"></a><span class="lineno"> 870</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00871"></a><span class="lineno"> 871</span>  }</div><div class="line"><a name="l00872"></a><span class="lineno"> 872</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ab4ec1727b753631de04ba00b6ff11e70">writeUByte</a>(0);</div><div class="line"><a name="l00873"></a><span class="lineno"> 873</span>  }</div><div class="line"><a name="l00874"></a><span class="lineno"> 874</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00875"></a><span class="lineno"> 875</span>  {</div><div class="line"><a name="l00876"></a><span class="lineno"> 876</span>  <span class="keyword">auto</span> it = str.begin();</div><div class="line"><a name="l00877"></a><span class="lineno"> 877</span>  <span class="keywordflow">for</span> (atInt32 i=0 ; i<fixedLen ; ++i)</div><div class="line"><a name="l00878"></a><span class="lineno"> 878</span>  {</div><div class="line"><a name="l00879"></a><span class="lineno"> 879</span>  atUint8 chr;</div><div class="line"><a name="l00880"></a><span class="lineno"> 880</span>  <span class="keywordflow">if</span> (it == str.end())</div><div class="line"><a name="l00881"></a><span class="lineno"> 881</span>  chr = 0;</div><div class="line"><a name="l00882"></a><span class="lineno"> 882</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00883"></a><span class="lineno"> 883</span>  chr = *it++;</div><div class="line"><a name="l00884"></a><span class="lineno"> 884</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ab4ec1727b753631de04ba00b6ff11e70">writeUByte</a>(chr);</div><div class="line"><a name="l00885"></a><span class="lineno"> 885</span>  }</div><div class="line"><a name="l00886"></a><span class="lineno"> 886</span>  }</div><div class="line"><a name="l00887"></a><span class="lineno"> 887</span>  }</div><div class="line"><a name="l00888"></a><span class="lineno"> 888</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(<span class="keyword">const</span> std::string& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a23b7b46e18bfa2cac97141a90b46ca97">writeString</a>(val);}</div><div class="line"><a name="l00889"></a><span class="lineno"> 889</span> </div><div class="line"><a name="l00897"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a5fdba54e5835aecb20aa18373729c440"> 897</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a5fdba54e5835aecb20aa18373729c440">writeWString</a>(<span class="keyword">const</span> std::wstring& str, atInt32 fixedLen = -1)</div><div class="line"><a name="l00898"></a><span class="lineno"> 898</span>  {</div><div class="line"><a name="l00899"></a><span class="lineno"> 899</span>  <span class="keywordflow">if</span> (fixedLen == 0)</div><div class="line"><a name="l00900"></a><span class="lineno"> 900</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00901"></a><span class="lineno"> 901</span> </div><div class="line"><a name="l00902"></a><span class="lineno"> 902</span>  <span class="keywordflow">if</span> (fixedLen < 0)</div><div class="line"><a name="l00903"></a><span class="lineno"> 903</span>  {</div><div class="line"><a name="l00904"></a><span class="lineno"> 904</span>  <span class="keywordflow">for</span> (atUint16 c : str)</div><div class="line"><a name="l00905"></a><span class="lineno"> 905</span>  {</div><div class="line"><a name="l00906"></a><span class="lineno"> 906</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9af3f0511d7540c15860c84ee034d089">writeUint16</a>(c);</div><div class="line"><a name="l00907"></a><span class="lineno"> 907</span> </div><div class="line"><a name="l00908"></a><span class="lineno"> 908</span>  <span class="keywordflow">if</span> (c == L<span class="charliteral">'\0'</span>)</div><div class="line"><a name="l00909"></a><span class="lineno"> 909</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00910"></a><span class="lineno"> 910</span>  }</div><div class="line"><a name="l00911"></a><span class="lineno"> 911</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9af3f0511d7540c15860c84ee034d089">writeUint16</a>(0);</div><div class="line"><a name="l00912"></a><span class="lineno"> 912</span>  }</div><div class="line"><a name="l00913"></a><span class="lineno"> 913</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00914"></a><span class="lineno"> 914</span>  {</div><div class="line"><a name="l00915"></a><span class="lineno"> 915</span>  <span class="keyword">auto</span> it = str.begin();</div><div class="line"><a name="l00916"></a><span class="lineno"> 916</span>  <span class="keywordflow">for</span> (atInt32 i=0 ; i<fixedLen ; ++i)</div><div class="line"><a name="l00917"></a><span class="lineno"> 917</span>  {</div><div class="line"><a name="l00918"></a><span class="lineno"> 918</span>  atUint16 chr;</div><div class="line"><a name="l00919"></a><span class="lineno"> 919</span>  <span class="keywordflow">if</span> (it == str.end())</div><div class="line"><a name="l00920"></a><span class="lineno"> 920</span>  chr = 0;</div><div class="line"><a name="l00921"></a><span class="lineno"> 921</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00922"></a><span class="lineno"> 922</span>  chr = *it++;</div><div class="line"><a name="l00923"></a><span class="lineno"> 923</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9af3f0511d7540c15860c84ee034d089">writeUint16</a>(chr);</div><div class="line"><a name="l00924"></a><span class="lineno"> 924</span>  }</div><div class="line"><a name="l00925"></a><span class="lineno"> 925</span>  }</div><div class="line"><a name="l00926"></a><span class="lineno"> 926</span>  }</div><div class="line"><a name="l00927"></a><span class="lineno"> 927</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeVal(<span class="keyword">const</span> std::wstring& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a5fdba54e5835aecb20aa18373729c440">writeWString</a>(val);}</div><div class="line"><a name="l00928"></a><span class="lineno"> 928</span> </div><div class="line"><a name="l00936"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#af1548ff6aba42ddd689f730a4cf05ba1"> 936</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#af1548ff6aba42ddd689f730a4cf05ba1">writeWStringLittle</a>(<span class="keyword">const</span> std::wstring& str, atInt32 fixedLen = -1)</div><div class="line"><a name="l00937"></a><span class="lineno"> 937</span>  {</div><div class="line"><a name="l00938"></a><span class="lineno"> 938</span>  <span class="keywordflow">if</span> (fixedLen == 0)</div><div class="line"><a name="l00939"></a><span class="lineno"> 939</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00940"></a><span class="lineno"> 940</span> </div><div class="line"><a name="l00941"></a><span class="lineno"> 941</span>  <span class="keywordflow">if</span> (fixedLen < 0)</div><div class="line"><a name="l00942"></a><span class="lineno"> 942</span>  {</div><div class="line"><a name="l00943"></a><span class="lineno"> 943</span>  <span class="keywordflow">for</span> (atUint16 c : str)</div><div class="line"><a name="l00944"></a><span class="lineno"> 944</span>  {</div><div class="line"><a name="l00945"></a><span class="lineno"> 945</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9741c7076a34948ac2742691d613808c">writeUint16Little</a>(c);</div><div class="line"><a name="l00946"></a><span class="lineno"> 946</span> </div><div class="line"><a name="l00947"></a><span class="lineno"> 947</span>  <span class="keywordflow">if</span> (c == L<span class="charliteral">'\0'</span>)</div><div class="line"><a name="l00948"></a><span class="lineno"> 948</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00949"></a><span class="lineno"> 949</span>  }</div><div class="line"><a name="l00950"></a><span class="lineno"> 950</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9741c7076a34948ac2742691d613808c">writeUint16Little</a>(0);</div><div class="line"><a name="l00951"></a><span class="lineno"> 951</span>  }</div><div class="line"><a name="l00952"></a><span class="lineno"> 952</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00953"></a><span class="lineno"> 953</span>  {</div><div class="line"><a name="l00954"></a><span class="lineno"> 954</span>  <span class="keyword">auto</span> it = str.begin();</div><div class="line"><a name="l00955"></a><span class="lineno"> 955</span>  <span class="keywordflow">for</span> (atInt32 i=0 ; i<fixedLen ; ++i)</div><div class="line"><a name="l00956"></a><span class="lineno"> 956</span>  {</div><div class="line"><a name="l00957"></a><span class="lineno"> 957</span>  atUint16 chr;</div><div class="line"><a name="l00958"></a><span class="lineno"> 958</span>  <span class="keywordflow">if</span> (it == str.end())</div><div class="line"><a name="l00959"></a><span class="lineno"> 959</span>  chr = 0;</div><div class="line"><a name="l00960"></a><span class="lineno"> 960</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00961"></a><span class="lineno"> 961</span>  chr = *it++;</div><div class="line"><a name="l00962"></a><span class="lineno"> 962</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a9741c7076a34948ac2742691d613808c">writeUint16Little</a>(chr);</div><div class="line"><a name="l00963"></a><span class="lineno"> 963</span>  }</div><div class="line"><a name="l00964"></a><span class="lineno"> 964</span>  }</div><div class="line"><a name="l00965"></a><span class="lineno"> 965</span>  }</div><div class="line"><a name="l00966"></a><span class="lineno"> 966</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValLittle(<span class="keyword">const</span> std::wstring& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#af1548ff6aba42ddd689f730a4cf05ba1">writeWStringLittle</a>(val);}</div><div class="line"><a name="l00967"></a><span class="lineno"> 967</span> </div><div class="line"><a name="l00975"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a8f16fc4fb358c95bea3ba7bb7880f3b0"> 975</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a8f16fc4fb358c95bea3ba7bb7880f3b0">writeWStringBig</a>(<span class="keyword">const</span> std::wstring& str, atInt32 fixedLen = -1)</div><div class="line"><a name="l00976"></a><span class="lineno"> 976</span>  {</div><div class="line"><a name="l00977"></a><span class="lineno"> 977</span>  <span class="keywordflow">if</span> (fixedLen == 0)</div><div class="line"><a name="l00978"></a><span class="lineno"> 978</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00979"></a><span class="lineno"> 979</span> </div><div class="line"><a name="l00980"></a><span class="lineno"> 980</span>  <span class="keywordflow">if</span> (fixedLen < 0)</div><div class="line"><a name="l00981"></a><span class="lineno"> 981</span>  {</div><div class="line"><a name="l00982"></a><span class="lineno"> 982</span>  <span class="keywordflow">for</span> (atUint16 c : str)</div><div class="line"><a name="l00983"></a><span class="lineno"> 983</span>  {</div><div class="line"><a name="l00984"></a><span class="lineno"> 984</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a734667fa5a1b3b6bcd48db0a82f9b151">writeUint16Big</a>(c);</div><div class="line"><a name="l00985"></a><span class="lineno"> 985</span> </div><div class="line"><a name="l00986"></a><span class="lineno"> 986</span>  <span class="keywordflow">if</span> (c == L<span class="charliteral">'\0'</span>)</div><div class="line"><a name="l00987"></a><span class="lineno"> 987</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00988"></a><span class="lineno"> 988</span>  }</div><div class="line"><a name="l00989"></a><span class="lineno"> 989</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a734667fa5a1b3b6bcd48db0a82f9b151">writeUint16Big</a>(0);</div><div class="line"><a name="l00990"></a><span class="lineno"> 990</span>  }</div><div class="line"><a name="l00991"></a><span class="lineno"> 991</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00992"></a><span class="lineno"> 992</span>  {</div><div class="line"><a name="l00993"></a><span class="lineno"> 993</span>  <span class="keyword">auto</span> it = str.begin();</div><div class="line"><a name="l00994"></a><span class="lineno"> 994</span>  <span class="keywordflow">for</span> (atInt32 i=0 ; i<fixedLen ; ++i)</div><div class="line"><a name="l00995"></a><span class="lineno"> 995</span>  {</div><div class="line"><a name="l00996"></a><span class="lineno"> 996</span>  atUint16 chr;</div><div class="line"><a name="l00997"></a><span class="lineno"> 997</span>  <span class="keywordflow">if</span> (it == str.end())</div><div class="line"><a name="l00998"></a><span class="lineno"> 998</span>  chr = 0;</div><div class="line"><a name="l00999"></a><span class="lineno"> 999</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>  chr = *it++;</div><div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a734667fa5a1b3b6bcd48db0a82f9b151">writeUint16Big</a>(chr);</div><div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>  }</div><div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>  }</div><div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>  }</div><div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> writeValBig(<span class="keyword">const</span> std::wstring& val) {<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a8f16fc4fb358c95bea3ba7bb7880f3b0">writeWStringBig</a>(val);}</div><div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> </div><div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> fill(atUint8 val, atUint64 <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a083a0f5a8d7f3919bf3e5839cb265cbe">length</a>)</div><div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>  {</div><div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>  <span class="keywordflow">if</span> (length == 0)</div><div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l01011"></a><span class="lineno"> 1011</span> </div><div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>  std::unique_ptr<atUint8[]> tmp(<span class="keyword">new</span> atUint8[length]);</div><div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>  memset(tmp.get(), val, <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a083a0f5a8d7f3919bf3e5839cb265cbe">length</a>);</div><div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>  <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>(tmp.get(), <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a083a0f5a8d7f3919bf3e5839cb265cbe">length</a>);</div><div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>  }</div><div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> </div><div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> fill(atInt8 val, atUint64 length)</div><div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>  {fill((atUint8)val, length);}</div><div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> </div><div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>  <span class="keyword">template</span> <<span class="keyword">class</span> T></div><div class="line"><a name="l01026"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#a7adf332904917b8ce72c34d720ecbdc5"> 1026</a></span>  <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a7adf332904917b8ce72c34d720ecbdc5">enumerate</a>(<span class="keyword">const</span> std::vector<T>& vector,</div><div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>  <span class="keyword">typename</span> std::enable_if<std::is_arithmetic<T>::value ||</div><div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>  std::is_same<T, atVec2f>::value ||</div><div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>  std::is_same<T, atVec3f>::value ||</div><div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>  std::is_same<T, atVec4f>::value>::type* = 0)</div><div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>  {</div><div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> T& item : vector)</div><div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>  writeVal(item);</div><div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>  }</div><div class="line"><a name="l01035"></a><span class="lineno"> 1035</span> </div><div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>  <span class="keyword">template</span> <<span class="keyword">class</span> T></div><div class="line"><a name="l01042"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#ae97ae98c8341ce8b76b20bbba4db5fe2"> 1042</a></span>  <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ae97ae98c8341ce8b76b20bbba4db5fe2">enumerateLittle</a>(<span class="keyword">const</span> std::vector<T>& vector,</div><div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>  <span class="keyword">typename</span> std::enable_if<std::is_arithmetic<T>::value ||</div><div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>  std::is_same<T, atVec2f>::value ||</div><div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>  std::is_same<T, atVec3f>::value ||</div><div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>  std::is_same<T, atVec4f>::value>::type* = 0)</div><div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>  {</div><div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> T& item : vector)</div><div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>  writeValLittle(item);</div><div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>  }</div><div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> </div><div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>  <span class="keyword">template</span> <<span class="keyword">class</span> T></div><div class="line"><a name="l01058"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#ac842e3e5b73e4097336fade50701f626"> 1058</a></span>  <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#ac842e3e5b73e4097336fade50701f626">enumerateBig</a>(<span class="keyword">const</span> std::vector<T>& vector,</div><div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>  <span class="keyword">typename</span> std::enable_if<std::is_arithmetic<T>::value ||</div><div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>  std::is_same<T, atVec2f>::value ||</div><div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>  std::is_same<T, atVec3f>::value ||</div><div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>  std::is_same<T, atVec4f>::value>::type* = 0)</div><div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>  {</div><div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> T& item : vector)</div><div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>  writeValBig(item);</div><div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>  }</div><div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> </div><div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>  <span class="keyword">template</span> <<span class="keyword">class</span> T></div><div class="line"><a name="l01072"></a><span class="lineno"><a class="line" href="classathena_1_1io_1_1_i_stream_writer.html#aae4fdb6e338e5074b05ea7c89e736793"> 1072</a></span>  <span class="keywordtype">void</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#aae4fdb6e338e5074b05ea7c89e736793">enumerate</a>(<span class="keyword">const</span> std::vector<T>& vector,</div><div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>  <span class="keyword">typename</span> std::enable_if<!std::is_arithmetic<T>::value &&</div><div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>  !std::is_same<T, atVec2f>::value &&</div><div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>  !std::is_same<T, atVec3f>::value &&</div><div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>  !std::is_same<T, atVec4f>::value>::type* = 0)</div><div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>  {</div><div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> T& item : vector)</div><div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>  item.write(*<span class="keyword">this</span>);</div><div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>  }</div><div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> };</div><div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> </div><div class="line"><a name="l01083"></a><span class="lineno"> 1083</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div><div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> <a class="code" href="classathena_1_1io_1_1_i_stream_writer.html">IStreamWriter</a>& operator<<(<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html">IStreamWriter</a>& lhs, <span class="keyword">const</span> T& rhs)</div><div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> {</div><div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>  lhs.writeVal(rhs);</div><div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>  <span class="keywordflow">return</span> lhs;</div><div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> }</div><div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> }</div><div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> }</div><div class="line"><a name="l01091"></a><span class="lineno"> 1091</span> <span class="preprocessor">#endif // STREAMWRITER_HPP</span></div><div class="line"><a name="l01092"></a><span class="lineno"> 1092</span> </div><div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_ac16b9636791f5b4da75a04676b57fadc"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#ac16b9636791f5b4da75a04676b57fadc">athena::io::IStreamWriter::writeVec4fLittle</a></div><div class="ttdeci">void writeVec4fLittle(const atVec4f &vec)</div><div class="ttdoc">Writes an atVec4f (16 bytes) to the buffer and advances the buffer. It also swaps the bytes against l...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00489">IStreamWriter.hpp:489</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a9c5d4cfa88dcc20145698ce023e8b7e9"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a9c5d4cfa88dcc20145698ce023e8b7e9">athena::io::IStreamWriter::writeFloatLittle</a></div><div class="ttdeci">void writeFloatLittle(float val)</div><div class="ttdoc">Writes an float to the buffer and advances the buffer. It also swaps the bytes against little dependi...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00286">IStreamWriter.hpp:286</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a97a89982f0dc086f7594fb9635c44228"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a97a89982f0dc086f7594fb9635c44228">athena::io::IStreamWriter::writeUint32</a></div><div class="ttdeci">void writeUint32(atUint32 val)</div><div class="ttdoc">Writes an Uint32 to the buffer and advances the buffer. It also swaps the bytes depending on the plat...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00184">IStreamWriter.hpp:184</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_ae34bbeefacf9d2ecff3e73577006073e"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#ae34bbeefacf9d2ecff3e73577006073e">athena::io::IStreamWriter::writeVec2f</a></div><div class="ttdeci">void writeVec2f(const atVec2f &vec)</div><div class="ttdoc">Writes an atVec2f (8 bytes) to the buffer and advances the buffer. It also swaps the bytes depending ...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00359">IStreamWriter.hpp:359</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_aabd99f3c12900b6a59bcd5fa31479200"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#aabd99f3c12900b6a59bcd5fa31479200">athena::io::IStreamWriter::writeFloat</a></div><div class="ttdeci">void writeFloat(float val)</div><div class="ttdoc">Writes an float to the buffer and advances the buffer. It also swaps the bytes depending on the platf...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00271">IStreamWriter.hpp:271</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a514a94a426722af4cd813d7a72233246"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a514a94a426722af4cd813d7a72233246">athena::io::IStreamWriter::seek</a></div><div class="ttdeci">virtual void seek(atInt64 pos, SeekOrigin origin=SeekOrigin::Current)=0</div><div class="ttdoc">Sets the buffers position relative to the specified position. It seeks relative to the current posit...</div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a06f41458affa32761d354048069f27f7"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a06f41458affa32761d354048069f27f7">athena::io::IStreamWriter::writeInt64Big</a></div><div class="ttdeci">void writeInt64Big(atInt64 val)</div><div class="ttdoc">Writes an Int64 to the buffer and advances the buffer. It also swaps the bytes against big depending ...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00235">IStreamWriter.hpp:235</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_ad817da8d9fb4633f988a2cb1a90a3b77"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#ad817da8d9fb4633f988a2cb1a90a3b77">athena::io::IStreamWriter::position</a></div><div class="ttdeci">virtual atUint64 position() const =0</div><div class="ttdoc">Returns the current position in the stream. </div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_ac842e3e5b73e4097336fade50701f626"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#ac842e3e5b73e4097336fade50701f626">athena::io::IStreamWriter::enumerateBig</a></div><div class="ttdeci">void enumerateBig(const std::vector< T > &vector, typename std::enable_if< std::is_arithmetic< T >::value||std::is_same< T, atVec2f >::value||std::is_same< T, atVec3f >::value||std::is_same< T, atVec4f >::value >::type *=0)</div><div class="ttdoc">Performs automatic std::vector enumeration writes using numeric type T. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l01058">IStreamWriter.hpp:1058</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_ae97ae98c8341ce8b76b20bbba4db5fe2"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#ae97ae98c8341ce8b76b20bbba4db5fe2">athena::io::IStreamWriter::enumerateLittle</a></div><div class="ttdeci">void enumerateLittle(const std::vector< T > &vector, typename std::enable_if< std::is_arithmetic< T >::value||std::is_same< T, atVec2f >::value||std::is_same< T, atVec3f >::value||std::is_same< T, atVec4f >::value >::type *=0)</div><div class="ttdoc">Performs automatic std::vector enumeration writes using numeric type T. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l01042">IStreamWriter.hpp:1042</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_ab611445463675b520a8002f6e7199a58"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#ab611445463675b520a8002f6e7199a58">athena::io::IStreamWriter::atEnd</a></div><div class="ttdeci">bool atEnd() const </div><div class="ttdoc">Returns whether or not the stream is at the end. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00031">IStreamWriter.hpp:31</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_abad6620197fd212be5e52cd7baf56afe"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#abad6620197fd212be5e52cd7baf56afe">athena::io::IStreamWriter::writeInt32Big</a></div><div class="ttdeci">void writeInt32Big(atInt32 val)</div><div class="ttdoc">Writes an Int32 to the buffer and advances the buffer. It also swaps the bytes against big depending ...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00172">IStreamWriter.hpp:172</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_ad73e2cd993af3494d0934e21563b6ccf"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#ad73e2cd993af3494d0934e21563b6ccf">athena::io::IStreamWriter::writeVec3fBig</a></div><div class="ttdeci">void writeVec3fBig(const atVec3f &vec)</div><div class="ttdoc">Writes an atVec3f (12 bytes) to the buffer and advances the buffer. It also swaps the bytes against b...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00448">IStreamWriter.hpp:448</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a083a0f5a8d7f3919bf3e5839cb265cbe"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a083a0f5a8d7f3919bf3e5839cb265cbe">athena::io::IStreamWriter::length</a></div><div class="ttdeci">virtual atUint64 length() const =0</div><div class="ttdoc">Returns whether or not the stream is at the end. </div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a9741c7076a34948ac2742691d613808c"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a9741c7076a34948ac2742691d613808c">athena::io::IStreamWriter::writeUint16Little</a></div><div class="ttdeci">void writeUint16Little(atUint16 val)</div><div class="ttdoc">Writes an Uint16 to the buffer and advances the buffer. It also swaps the bytes against little depend...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00129">IStreamWriter.hpp:129</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a8f16fc4fb358c95bea3ba7bb7880f3b0"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a8f16fc4fb358c95bea3ba7bb7880f3b0">athena::io::IStreamWriter::writeWStringBig</a></div><div class="ttdeci">void writeWStringBig(const std::wstring &str, atInt32 fixedLen=-1)</div><div class="ttdoc">Writes an wstring to the buffer and advances the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00975">IStreamWriter.hpp:975</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a96dadce2d998dfc146c9f78d494f237d"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a96dadce2d998dfc146c9f78d494f237d">athena::io::IStreamWriter::writeByte</a></div><div class="ttdeci">void writeByte(atInt8 val)</div><div class="ttdoc">Writes a byte at the current position and advances the position by one byte. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00056">IStreamWriter.hpp:56</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a7adf332904917b8ce72c34d720ecbdc5"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a7adf332904917b8ce72c34d720ecbdc5">athena::io::IStreamWriter::enumerate</a></div><div class="ttdeci">void enumerate(const std::vector< T > &vector, typename std::enable_if< std::is_arithmetic< T >::value||std::is_same< T, atVec2f >::value||std::is_same< T, atVec3f >::value||std::is_same< T, atVec4f >::value >::type *=0)</div><div class="ttdoc">Performs automatic std::vector enumeration writes using numeric type T. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l01026">IStreamWriter.hpp:1026</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_af1548ff6aba42ddd689f730a4cf05ba1"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#af1548ff6aba42ddd689f730a4cf05ba1">athena::io::IStreamWriter::writeWStringLittle</a></div><div class="ttdeci">void writeWStringLittle(const std::wstring &str, atInt32 fixedLen=-1)</div><div class="ttdoc">Writes an wstring to the buffer and advances the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00936">IStreamWriter.hpp:936</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a81377cfb5e20fa71e46d3fa853dbab7a"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a81377cfb5e20fa71e46d3fa853dbab7a">athena::io::IStreamWriter::writeUint64Big</a></div><div class="ttdeci">void writeUint64Big(atUint64 val)</div><div class="ttdoc">Writes an Uint64 to the buffer and advances the buffer. It also swaps the bytes against big depending...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00263">IStreamWriter.hpp:263</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a5fdba54e5835aecb20aa18373729c440"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a5fdba54e5835aecb20aa18373729c440">athena::io::IStreamWriter::writeWString</a></div><div class="ttdeci">void writeWString(const std::wstring &str, atInt32 fixedLen=-1)</div><div class="ttdoc">Writes an wstring to the buffer and advances the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00897">IStreamWriter.hpp:897</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a404bf77e619f4b40c3f8fb84cc8eaad8"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a404bf77e619f4b40c3f8fb84cc8eaad8">athena::io::IStreamWriter::writeUint32Big</a></div><div class="ttdeci">void writeUint32Big(atUint32 val)</div><div class="ttdoc">Writes an Uint32 to the buffer and advances the buffer. It also swaps the bytes against big depending...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00200">IStreamWriter.hpp:200</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a643d08a3c8fd0d8774c44188663f8de4"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">athena::io::IStreamWriter::writeUBytes</a></div><div class="ttdeci">virtual void writeUBytes(const atUint8 *data, atUint64 len)=0</div><div class="ttdoc">Writes the given buffer with the specified length, buffers can be bigger than the length however it&#39;s...</div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_ab3f3944ad62a53e47eb134bc9a7cb153"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#ab3f3944ad62a53e47eb134bc9a7cb153">athena::io::IStreamWriter::writeBytes</a></div><div class="ttdeci">void writeBytes(const void *data, atUint64 len)</div><div class="ttdoc">Writes the given buffer with the specified length, buffers can be bigger than the length however it&#39;s...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00075">IStreamWriter.hpp:75</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_ae24ef659380c7cdc310fbf519c753e08"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#ae24ef659380c7cdc310fbf519c753e08">athena::io::IStreamWriter::writeStringAsWStringBig</a></div><div class="ttdeci">void writeStringAsWStringBig(const std::string &str, atInt32 fixedLen=-1)</div><div class="ttdoc">Converts a UTF8 string to a wide-char string in the buffer and advances the buffer. It also swaps the bytes depending on the platform and Stream settings. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00802">IStreamWriter.hpp:802</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a109a6921a97d8dc0e8e44ad76c835c8f"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a109a6921a97d8dc0e8e44ad76c835c8f">athena::io::IStreamWriter::writeInt16</a></div><div class="ttdeci">void writeInt16(atInt16 val)</div><div class="ttdoc">Writes an Int16 to the buffer and advances the buffer. It also swaps the bytes depending on the platf...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00082">IStreamWriter.hpp:82</a></div></div>
|
|
<div class="ttc" id="namespaceathena_html"><div class="ttname"><a href="namespaceathena.html">athena</a></div><div class="ttdef"><b>Definition:</b> <a href="_a_l_t_t_p_enums_8hpp_source.html#l00006">ALTTPEnums.hpp:6</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_aae4fdb6e338e5074b05ea7c89e736793"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#aae4fdb6e338e5074b05ea7c89e736793">athena::io::IStreamWriter::enumerate</a></div><div class="ttdeci">void enumerate(const std::vector< T > &vector, typename std::enable_if<!std::is_arithmetic< T >::value &&!std::is_same< T, atVec2f >::value &&!std::is_same< T, atVec3f >::value &&!std::is_same< T, atVec4f >::value >::type *=0)</div><div class="ttdoc">Performs automatic std::vector enumeration writes using non-numeric type T. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l01072">IStreamWriter.hpp:1072</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a044084c0404e3a452d862a718b780398"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a044084c0404e3a452d862a718b780398">athena::io::IStreamWriter::writeVec2fBig</a></div><div class="ttdeci">void writeVec2fBig(const atVec2f &vec)</div><div class="ttdoc">Writes an atVec2f (8 bytes) to the buffer and advances the buffer. It also swaps the bytes against bi...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00395">IStreamWriter.hpp:395</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a375796614783d08aedfd14559ec006af"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a375796614783d08aedfd14559ec006af">athena::io::IStreamWriter::writeVec4dBig</a></div><div class="ttdeci">void writeVec4dBig(const atVec4d &vec)</div><div class="ttdoc">Writes an atVec4d (32 bytes) to the buffer and advances the buffer. It also swaps the bytes against b...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00667">IStreamWriter.hpp:667</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_ab5608078edf09f70aec60e53f737a17a"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#ab5608078edf09f70aec60e53f737a17a">athena::io::IStreamWriter::writeDouble</a></div><div class="ttdeci">void writeDouble(double val)</div><div class="ttdoc">Writes an double to the buffer and advances the buffer. It also swaps the bytes depending on the plat...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00310">IStreamWriter.hpp:310</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_adcf1b5b81e29b07f938626af3f207641"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#adcf1b5b81e29b07f938626af3f207641">athena::io::IStreamWriter::writeBool</a></div><div class="ttdeci">void writeBool(bool val)</div><div class="ttdoc">Writes an bool to the buffer and advances the buffer. It also swaps the bytes depending on the platfo...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00349">IStreamWriter.hpp:349</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a95a9746cc47a8c8d95f6f464d7c0b8f1"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a95a9746cc47a8c8d95f6f464d7c0b8f1">athena::io::IStreamWriter::writeVec4fBig</a></div><div class="ttdeci">void writeVec4fBig(const atVec4f &vec)</div><div class="ttdoc">Writes an atVec4f (16 bytes) to the buffer and advances the buffer. It also swaps the bytes against b...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00505">IStreamWriter.hpp:505</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a17261b2ee9c1d716589120b18cd9339b"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a17261b2ee9c1d716589120b18cd9339b">athena::io::IStreamWriter::writeStringAsWString</a></div><div class="ttdeci">void writeStringAsWString(const std::string &str, atInt32 fixedLen=-1)</div><div class="ttdoc">Converts a UTF8 string to a wide-char string in the buffer and advances the buffer. It also swaps the bytes depending on the platform and Stream settings. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00686">IStreamWriter.hpp:686</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_ad6a3edbaec9caeca2a9078caf1418746"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#ad6a3edbaec9caeca2a9078caf1418746">athena::io::IStreamWriter::writeVec4f</a></div><div class="ttdeci">void writeVec4f(const atVec4f &vec)</div><div class="ttdoc">Writes an atVec4f (16 bytes) to the buffer and advances the buffer. It also swaps the bytes depending...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00463">IStreamWriter.hpp:463</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a675c93f44adba344827ecfc1f0d5a08c"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a675c93f44adba344827ecfc1f0d5a08c">athena::io::IStreamWriter::writeUint64</a></div><div class="ttdeci">void writeUint64(atUint64 val)</div><div class="ttdoc">Writes an Uint64 to the buffer and advances the buffer. It also swaps the bytes depending on the plat...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00247">IStreamWriter.hpp:247</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a9af3f0511d7540c15860c84ee034d089"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a9af3f0511d7540c15860c84ee034d089">athena::io::IStreamWriter::writeUint16</a></div><div class="ttdeci">void writeUint16(atUint16 val)</div><div class="ttdoc">Writes an Uint16 to the buffer and advances the buffer. It also swaps the bytes depending on the plat...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00121">IStreamWriter.hpp:121</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a13380e1e89ad99f3a37a30e3c898831b"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a13380e1e89ad99f3a37a30e3c898831b">athena::io::IStreamWriter::writeUint32Little</a></div><div class="ttdeci">void writeUint32Little(atUint32 val)</div><div class="ttdoc">Writes an Uint32 to the buffer and advances the buffer. It also swaps the bytes against little depend...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00192">IStreamWriter.hpp:192</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a873ab4b37aed1c0675a45c03836325a1"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a873ab4b37aed1c0675a45c03836325a1">athena::io::IStreamWriter::writeInt16Big</a></div><div class="ttdeci">void writeInt16Big(atInt16 val)</div><div class="ttdoc">Writes an Int16 to the buffer and advances the buffer. It also swaps the bytes against big depending ...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00109">IStreamWriter.hpp:109</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a02ec9862c7362e4ab6c378fe09fd9b32"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a02ec9862c7362e4ab6c378fe09fd9b32">athena::io::IStreamWriter::writeVec2fLittle</a></div><div class="ttdeci">void writeVec2fLittle(const atVec2f &vec)</div><div class="ttdoc">Writes an atVec2f (8 bytes) to the buffer and advances the buffer. It also swaps the bytes against li...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00381">IStreamWriter.hpp:381</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a865f51a5ab4bd01933fba868eb2c248c"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a865f51a5ab4bd01933fba868eb2c248c">athena::io::IStreamWriter::writeStringAsWStringLittle</a></div><div class="ttdeci">void writeStringAsWStringLittle(const std::string &str, atInt32 fixedLen=-1)</div><div class="ttdoc">Converts a UTF8 string to a wide-char string in the buffer and advances the buffer. It also swaps the bytes depending on the platform and Stream settings. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00744">IStreamWriter.hpp:744</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a36c5c0577e34d2ea8cc06b217b0cdeb2"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a36c5c0577e34d2ea8cc06b217b0cdeb2">athena::io::IStreamWriter::writeInt16Little</a></div><div class="ttdeci">void writeInt16Little(atInt16 val)</div><div class="ttdoc">Writes an Int16 to the buffer and advances the buffer. It also swaps the bytes against little dependi...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00097">IStreamWriter.hpp:97</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_aec96ff4021bdebaff7746f1ca52d246c"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#aec96ff4021bdebaff7746f1ca52d246c">athena::io::IStreamWriter::writeVec4dLittle</a></div><div class="ttdeci">void writeVec4dLittle(const atVec4d &vec)</div><div class="ttdoc">Writes an atVec4d (32 bytes) to the buffer and advances the buffer. It also swaps the bytes against l...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00651">IStreamWriter.hpp:651</a></div></div>
|
|
<div class="ttc" id="unionalignas_html"><div class="ttname"><a href="unionalignas.html">alignas</a></div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00035">Types.hpp:35</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a4c58cdda6713ff085552dc92144424c3"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a4c58cdda6713ff085552dc92144424c3">athena::io::IStreamWriter::writeVec2dLittle</a></div><div class="ttdeci">void writeVec2dLittle(const atVec2d &vec)</div><div class="ttdoc">Writes an atVec2d (16 bytes) to the buffer and advances the buffer. It also swaps the bytes against l...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00543">IStreamWriter.hpp:543</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a7252fe2c08572ea494c390909a797bda"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a7252fe2c08572ea494c390909a797bda">athena::io::IStreamWriter::writeInt32</a></div><div class="ttdeci">void writeInt32(atInt32 val)</div><div class="ttdoc">Writes an Int32 to the buffer and advances the buffer. It also swaps the bytes depending on the platf...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00145">IStreamWriter.hpp:145</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_af15f95bab05c66fd06e4e7ec969a6d88"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#af15f95bab05c66fd06e4e7ec969a6d88">athena::io::IStreamWriter::writeDoubleBig</a></div><div class="ttdeci">void writeDoubleBig(double val)</div><div class="ttdoc">Writes an double to the buffer and advances the buffer. It also swaps the bytes against big depending...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00337">IStreamWriter.hpp:337</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html">athena::io::IStreamWriter</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00012">IStreamWriter.hpp:12</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a831922074aba948ca4afcee3bc2b8348"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a831922074aba948ca4afcee3bc2b8348">athena::io::IStreamWriter::writeVec2dBig</a></div><div class="ttdeci">void writeVec2dBig(const atVec2d &vec)</div><div class="ttdoc">Writes an atVec2d (16 bytes) to the buffer and advances the buffer. It also swaps the bytes against b...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00557">IStreamWriter.hpp:557</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a17143ff3c07aed330db459cd2673fd1e"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a17143ff3c07aed330db459cd2673fd1e">athena::io::IStreamWriter::writeInt64</a></div><div class="ttdeci">void writeInt64(atInt64 val)</div><div class="ttdoc">Writes an Int64 to the buffer and advances the buffer. It also swaps the bytes depending on the platf...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00208">IStreamWriter.hpp:208</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_afde125e001200130c188584194224574"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#afde125e001200130c188584194224574">athena::io::IStreamWriter::writeVec3d</a></div><div class="ttdeci">void writeVec3d(const atVec3d &vec)</div><div class="ttdoc">Writes an atVec3d (24 bytes) to the buffer and advances the buffer. It also swaps the bytes depending...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00571">IStreamWriter.hpp:571</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a11c635a2ccb08c72a444886e829d6d07"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a11c635a2ccb08c72a444886e829d6d07">athena::io::IStreamWriter::writeVec3dLittle</a></div><div class="ttdeci">void writeVec3dLittle(const atVec3d &vec)</div><div class="ttdoc">Writes an atVec3d (24 bytes) to the buffer and advances the buffer. It also swaps the bytes against l...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00595">IStreamWriter.hpp:595</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_html"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream.html">athena::io::IStream</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_8hpp_source.html#l00012">IStream.hpp:12</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a6039dd59fa4f0a312db0944c17d6d03e"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a6039dd59fa4f0a312db0944c17d6d03e">athena::io::IStreamWriter::writeVec3dBig</a></div><div class="ttdeci">void writeVec3dBig(const atVec3d &vec)</div><div class="ttdoc">Writes an atVec3d (24 bytes) to the buffer and advances the buffer. It also swaps the bytes against b...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00610">IStreamWriter.hpp:610</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a1f4dcc5f32812ede3f6e114b38f4f1c9"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a1f4dcc5f32812ede3f6e114b38f4f1c9">athena::io::IStreamWriter::writeVec3f</a></div><div class="ttdeci">void writeVec3f(const atVec3f &vec)</div><div class="ttdoc">Writes an atVec3f (12 bytes) to the buffer and advances the buffer. It also swaps the bytes depending...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00409">IStreamWriter.hpp:409</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a734667fa5a1b3b6bcd48db0a82f9b151"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a734667fa5a1b3b6bcd48db0a82f9b151">athena::io::IStreamWriter::writeUint16Big</a></div><div class="ttdeci">void writeUint16Big(atUint16 val)</div><div class="ttdoc">Writes an Uint16 to the buffer and advances the buffer. It also swaps the bytes against big depending...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00137">IStreamWriter.hpp:137</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_ab4ec1727b753631de04ba00b6ff11e70"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#ab4ec1727b753631de04ba00b6ff11e70">athena::io::IStreamWriter::writeUByte</a></div><div class="ttdeci">void writeUByte(atUint8 val)</div><div class="ttdoc">Writes a byte at the current position and advances the position by one byte. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00048">IStreamWriter.hpp:48</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a4843b2da629bb0adcfc4a2ad88643ae3"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a4843b2da629bb0adcfc4a2ad88643ae3">athena::io::IStreamWriter::writeFloatBig</a></div><div class="ttdeci">void writeFloatBig(float val)</div><div class="ttdoc">Writes an float to the buffer and advances the buffer. It also swaps the bytes against big depending ...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00298">IStreamWriter.hpp:298</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a8d2145a269f592943944fa6133ee6633"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a8d2145a269f592943944fa6133ee6633">athena::io::IStreamWriter::writeUint64Little</a></div><div class="ttdeci">void writeUint64Little(atUint64 val)</div><div class="ttdoc">Writes an Uint64 to the buffer and advances the buffer. It also swaps the bytes against little depend...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00255">IStreamWriter.hpp:255</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_adc4fa9151c96d58f0aa2979f608e52fe"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#adc4fa9151c96d58f0aa2979f608e52fe">athena::io::IStreamWriter::writeVec4d</a></div><div class="ttdeci">void writeVec4d(const atVec4d &vec)</div><div class="ttdoc">Writes an atVec4d (32 bytes) to the buffer and advances the buffer. It also swaps the bytes depending...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00625">IStreamWriter.hpp:625</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a9bc23e4608bd5e736a71565c004624a9"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a9bc23e4608bd5e736a71565c004624a9">athena::io::IStreamWriter::writeDoubleLittle</a></div><div class="ttdeci">void writeDoubleLittle(double val)</div><div class="ttdoc">Writes an double to the buffer and advances the buffer. It also swaps the bytes against little depend...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00325">IStreamWriter.hpp:325</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a23b7b46e18bfa2cac97141a90b46ca97"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a23b7b46e18bfa2cac97141a90b46ca97">athena::io::IStreamWriter::writeString</a></div><div class="ttdeci">void writeString(const std::string &str, atInt32 fixedLen=-1)</div><div class="ttdoc">Writes an string to the buffer and advances the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00858">IStreamWriter.hpp:858</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a1fb8d1aec92aea4894a6be0814b2f38a"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a1fb8d1aec92aea4894a6be0814b2f38a">athena::io::IStreamWriter::seekAlign32</a></div><div class="ttdeci">void seekAlign32()</div><div class="ttdoc">Sets the buffers position relative to the next 32-byte aligned position. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00025">IStreamWriter.hpp:25</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_abb354b61ad4cc79cb9e795befa51dc02"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#abb354b61ad4cc79cb9e795befa51dc02">athena::io::IStreamWriter::writeInt32Little</a></div><div class="ttdeci">void writeInt32Little(atInt32 val)</div><div class="ttdoc">Writes an Int32 to the buffer and advances the buffer. It also swaps the bytes against little dependi...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00160">IStreamWriter.hpp:160</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_aea67e75b0611bc89b9763b6ba42830c3"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#aea67e75b0611bc89b9763b6ba42830c3">athena::io::IStreamWriter::writeVec2d</a></div><div class="ttdeci">void writeVec2d(const atVec2d &vec)</div><div class="ttdoc">Writes an atVec2d (16 bytes) to the buffer and advances the buffer. It also swaps the bytes depending...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00521">IStreamWriter.hpp:521</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a7e135e3ae2bd39d04c50eb88a258c1a3"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a7e135e3ae2bd39d04c50eb88a258c1a3">athena::io::IStreamWriter::writeInt64Little</a></div><div class="ttdeci">void writeInt64Little(atInt64 val)</div><div class="ttdoc">Writes an Int64 to the buffer and advances the buffer. It also swaps the bytes against little dependi...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00223">IStreamWriter.hpp:223</a></div></div>
|
|
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a611d258bc7699409de30c5b22d3176e0"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a611d258bc7699409de30c5b22d3176e0">athena::io::IStreamWriter::writeVec3fLittle</a></div><div class="ttdeci">void writeVec3fLittle(const atVec3f &vec)</div><div class="ttdoc">Writes an atVec3f (12 bytes) to the buffer and advances the buffer. It also swaps the bytes against l...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00433">IStreamWriter.hpp:433</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_9b3fbfcb7fc609b7105d1ff63111043b.html">athena</a></li><li class="navelem"><b>IStreamWriter.hpp</b></li>
|
|
<li class="footer">Generated on Sat Sep 17 2016 13:10:08 for Athena IO Library by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|