aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Documentation/PhysXAPI/files/PxFileBuf_8h-source.html
diff options
context:
space:
mode:
authorgit perforce import user <a@b>2016-10-25 12:29:14 -0600
committerSheikh Dawood Abdul Ajees <Sheikh Dawood Abdul Ajees>2016-10-25 18:56:37 -0500
commit3dfe2108cfab31ba3ee5527e217d0d8e99a51162 (patch)
treefa6485c169e50d7415a651bf838f5bcd0fd3bfbd /PhysX_3.4/Documentation/PhysXAPI/files/PxFileBuf_8h-source.html
downloadphysx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.tar.xz
physx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.zip
Initial commit:
PhysX 3.4.0 Update @ 21294896 APEX 1.4.0 Update @ 21275617 [CL 21300167]
Diffstat (limited to 'PhysX_3.4/Documentation/PhysXAPI/files/PxFileBuf_8h-source.html')
-rw-r--r--PhysX_3.4/Documentation/PhysXAPI/files/PxFileBuf_8h-source.html290
1 files changed, 290 insertions, 0 deletions
diff --git a/PhysX_3.4/Documentation/PhysXAPI/files/PxFileBuf_8h-source.html b/PhysX_3.4/Documentation/PhysXAPI/files/PxFileBuf_8h-source.html
new file mode 100644
index 00000000..a1505498
--- /dev/null
+++ b/PhysX_3.4/Documentation/PhysXAPI/files/PxFileBuf_8h-source.html
@@ -0,0 +1,290 @@
+<html>
+ <head>
+ <title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxFileBuf.h Source File</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
+ </head>
+
+ <body bgcolor="#FFFFFF">
+ <div id="header">
+ <hr class="first">
+ <img alt="" src="images/PhysXlogo.png" align="middle"> <br>
+ <center>
+ <a class="qindex" href="main.html">Main Page</a> &nbsp;
+ <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp;
+ <a class="qindex" href="annotated.html">Compound List</a> &nbsp;
+ <a class="qindex" href="functions.html">Compound Members</a> &nbsp;
+ </center>
+ <hr class="second">
+ </div>
+<!-- Generated by Doxygen 1.5.8 -->
+<h1>PxFileBuf.h</h1><a href="PxFileBuf_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// This code contains NVIDIA Confidential Information and is disclosed to you</span>
+<a name="l00002"></a>00002 <span class="comment">// under a form of NVIDIA software license agreement provided separately to you.</span>
+<a name="l00003"></a>00003 <span class="comment">//</span>
+<a name="l00004"></a>00004 <span class="comment">// Notice</span>
+<a name="l00005"></a>00005 <span class="comment">// NVIDIA Corporation and its licensors retain all intellectual property and</span>
+<a name="l00006"></a>00006 <span class="comment">// proprietary rights in and to this software and related documentation and</span>
+<a name="l00007"></a>00007 <span class="comment">// any modifications thereto. Any use, reproduction, disclosure, or</span>
+<a name="l00008"></a>00008 <span class="comment">// distribution of this software and related documentation without an express</span>
+<a name="l00009"></a>00009 <span class="comment">// license agreement from NVIDIA Corporation is strictly prohibited.</span>
+<a name="l00010"></a>00010 <span class="comment">//</span>
+<a name="l00011"></a>00011 <span class="comment">// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES</span>
+<a name="l00012"></a>00012 <span class="comment">// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO</span>
+<a name="l00013"></a>00013 <span class="comment">// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,</span>
+<a name="l00014"></a>00014 <span class="comment">// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.</span>
+<a name="l00015"></a>00015 <span class="comment">//</span>
+<a name="l00016"></a>00016 <span class="comment">// Information and code furnished is believed to be accurate and reliable.</span>
+<a name="l00017"></a>00017 <span class="comment">// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such</span>
+<a name="l00018"></a>00018 <span class="comment">// information or for any infringement of patents or other rights of third parties that may</span>
+<a name="l00019"></a>00019 <span class="comment">// result from its use. No license is granted by implication or otherwise under any patent</span>
+<a name="l00020"></a>00020 <span class="comment">// or patent rights of NVIDIA Corporation. Details are subject to change without notice.</span>
+<a name="l00021"></a>00021 <span class="comment">// This code supersedes and replaces all information previously supplied.</span>
+<a name="l00022"></a>00022 <span class="comment">// NVIDIA Corporation products are not authorized for use as critical</span>
+<a name="l00023"></a>00023 <span class="comment">// components in life support devices or systems without express written approval of</span>
+<a name="l00024"></a>00024 <span class="comment">// NVIDIA Corporation.</span>
+<a name="l00025"></a>00025 <span class="comment">//</span>
+<a name="l00026"></a>00026 <span class="comment">// Copyright (c) 2008-2016 NVIDIA Corporation. All rights reserved.</span>
+<a name="l00027"></a>00027 <span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span>
+<a name="l00028"></a>00028 <span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved. </span>
+<a name="l00029"></a>00029
+<a name="l00030"></a>00030
+<a name="l00031"></a>00031 <span class="preprocessor">#ifndef PSFILEBUFFER_PXFILEBUF_H</span>
+<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define PSFILEBUFFER_PXFILEBUF_H</span>
+<a name="l00033"></a>00033 <span class="preprocessor"></span>
+<a name="l00038"></a>00038 <span class="preprocessor">#if !PX_DOXYGEN</span>
+<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="keyword">namespace </span>physx
+<a name="l00040"></a>00040 {
+<a name="l00041"></a>00041
+<a name="l00042"></a>00042 <span class="keyword">namespace </span>general_PxIOStream2
+<a name="l00043"></a>00043 {
+<a name="l00044"></a>00044 <span class="preprocessor">#endif</span>
+<a name="l00045"></a>00045 <span class="preprocessor"></span>
+<a name="l00046"></a>00046 <a class="code" href="group__foundation.html#g1145ffab2cc9a77ca65b59ba4126342f">PX_PUSH_PACK_DEFAULT</a>
+<a name="l00047"></a>00047
+<a name="l00058"></a><a class="code" href="classPxFileBuf.html">00058</a> <span class="keyword">class </span><a class="code" href="classPxFileBuf.html" title="Callback class for data serialization.">PxFileBuf</a>
+<a name="l00059"></a>00059 {
+<a name="l00060"></a>00060 <span class="keyword">public</span>:
+<a name="l00061"></a>00061
+<a name="l00062"></a><a class="code" href="classPxFileBuf.html#17a9f8dcf7aeed5221f78ad2c785d122">00062</a> <span class="keyword">enum</span> <a class="code" href="classPxFileBuf.html#17a9f8dcf7aeed5221f78ad2c785d122">EndianMode</a>
+<a name="l00063"></a>00063 {
+<a name="l00064"></a><a class="code" href="classPxFileBuf.html#17a9f8dcf7aeed5221f78ad2c785d122e9ca3a0e3b5d5a01c8526820e7c0ad29">00064</a> ENDIAN_NONE = 0, <span class="comment">// do no conversion for endian mode</span>
+<a name="l00065"></a><a class="code" href="classPxFileBuf.html#17a9f8dcf7aeed5221f78ad2c785d122250430fabf897a0a7215e927d90e804b">00065</a> ENDIAN_BIG = 1, <span class="comment">// always read/write data as natively big endian (Power PC, etc.)</span>
+<a name="l00066"></a><a class="code" href="classPxFileBuf.html#17a9f8dcf7aeed5221f78ad2c785d1222ee31c8801eca6be180984790a83e29d">00066</a> ENDIAN_LITTLE = 2 <span class="comment">// always read/write data as natively little endian (Intel, etc.) Default Behavior!</span>
+<a name="l00067"></a>00067 };
+<a name="l00068"></a>00068
+<a name="l00069"></a><a class="code" href="classPxFileBuf.html#e46af0c1492c02d53ed1488361b5c7d6">00069</a> <a class="code" href="classPxFileBuf.html" title="Callback class for data serialization.">PxFileBuf</a>(<a class="code" href="classPxFileBuf.html#17a9f8dcf7aeed5221f78ad2c785d122">EndianMode</a> mode=ENDIAN_LITTLE)
+<a name="l00070"></a>00070 {
+<a name="l00071"></a>00071 setEndianMode(mode);
+<a name="l00072"></a>00072 }
+<a name="l00073"></a>00073
+<a name="l00074"></a><a class="code" href="classPxFileBuf.html#99b5918f6ae9142a7a440c64055d419e">00074</a> <span class="keyword">virtual</span> ~<a class="code" href="classPxFileBuf.html" title="Callback class for data serialization.">PxFileBuf</a>(<span class="keywordtype">void</span>)
+<a name="l00075"></a>00075 {
+<a name="l00076"></a>00076
+<a name="l00077"></a>00077 }
+<a name="l00078"></a>00078
+<a name="l00084"></a><a class="code" href="classPxFileBuf.html#47cf6bed5f9dca3628f4b61fc6ec6eb8">00084</a> <span class="keyword">static</span> <span class="keyword">const</span> uint32_t STREAM_SEEK_END=0xFFFFFFFF;
+<a name="l00085"></a>00085
+<a name="l00086"></a><a class="code" href="classPxFileBuf.html#d90517c9062bd9c4f76c4f4b30cb8979">00086</a> <span class="keyword">enum</span> <a class="code" href="classPxFileBuf.html#d90517c9062bd9c4f76c4f4b30cb8979">OpenMode</a>
+<a name="l00087"></a>00087 {
+<a name="l00088"></a><a class="code" href="classPxFileBuf.html#d90517c9062bd9c4f76c4f4b30cb897919f34fe662c01159bfc09b648b5b16cb">00088</a> OPEN_FILE_NOT_FOUND,
+<a name="l00089"></a><a class="code" href="classPxFileBuf.html#d90517c9062bd9c4f76c4f4b30cb89798f05c34eecefaa76501a85ec4b0452a7">00089</a> OPEN_READ_ONLY, <span class="comment">// open file buffer stream for read only access</span>
+<a name="l00090"></a><a class="code" href="classPxFileBuf.html#d90517c9062bd9c4f76c4f4b30cb8979b61521c34c90359331a05fb41ec8d481">00090</a> OPEN_WRITE_ONLY, <span class="comment">// open file buffer stream for write only access</span>
+<a name="l00091"></a><a class="code" href="classPxFileBuf.html#d90517c9062bd9c4f76c4f4b30cb8979dea409bf3c24a9986d810b638652e759">00091</a> OPEN_READ_WRITE_NEW, <span class="comment">// open a new file for both read/write access</span>
+<a name="l00092"></a><a class="code" href="classPxFileBuf.html#d90517c9062bd9c4f76c4f4b30cb8979ddd857cb3d835234fd152a63f8501bcd">00092</a> OPEN_READ_WRITE_EXISTING <span class="comment">// open an existing file for both read/write access</span>
+<a name="l00093"></a>00093 };
+<a name="l00094"></a>00094
+<a name="l00095"></a>00095 <span class="keyword">virtual</span> OpenMode getOpenMode(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0;
+<a name="l00096"></a>00096
+<a name="l00097"></a><a class="code" href="classPxFileBuf.html#a48032ce922c102b5fe1d6defde7327d">00097</a> <span class="keywordtype">bool</span> isOpen(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
+<a name="l00098"></a>00098 <span class="keyword"> </span>{
+<a name="l00099"></a>00099 <span class="keywordflow">return</span> getOpenMode()!=OPEN_FILE_NOT_FOUND;
+<a name="l00100"></a>00100 }
+<a name="l00101"></a>00101
+<a name="l00102"></a><a class="code" href="classPxFileBuf.html#2442abc9fb9f4ff32fd191176a68dd7e">00102</a> <span class="keyword">enum</span> <a class="code" href="classPxFileBuf.html#2442abc9fb9f4ff32fd191176a68dd7e">SeekType</a>
+<a name="l00103"></a>00103 {
+<a name="l00104"></a><a class="code" href="classPxFileBuf.html#2442abc9fb9f4ff32fd191176a68dd7e9a8656c41bea2287273ac71836425843">00104</a> SEEKABLE_NO = 0,
+<a name="l00105"></a><a class="code" href="classPxFileBuf.html#2442abc9fb9f4ff32fd191176a68dd7ebecbf374e20587df095cb58179d586ea">00105</a> SEEKABLE_READ = 0x1,
+<a name="l00106"></a><a class="code" href="classPxFileBuf.html#2442abc9fb9f4ff32fd191176a68dd7e73a929448a6bb5382f36ef56227d38c6">00106</a> SEEKABLE_WRITE = 0x2,
+<a name="l00107"></a><a class="code" href="classPxFileBuf.html#2442abc9fb9f4ff32fd191176a68dd7e44122534caabc00563b8ecf22b5dfb8b">00107</a> SEEKABLE_READWRITE = 0x3
+<a name="l00108"></a>00108 };
+<a name="l00109"></a>00109
+<a name="l00110"></a>00110 <span class="keyword">virtual</span> SeekType isSeekable(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0;
+<a name="l00111"></a>00111
+<a name="l00112"></a><a class="code" href="classPxFileBuf.html#f72ea9fc1222848db164855a3d8f8b70">00112</a> <span class="keywordtype">void</span> setEndianMode(<a class="code" href="classPxFileBuf.html#17a9f8dcf7aeed5221f78ad2c785d122">EndianMode</a> e)
+<a name="l00113"></a>00113 {
+<a name="l00114"></a>00114 mEndianMode = e;
+<a name="l00115"></a>00115 <span class="keywordflow">if</span> ( (e==ENDIAN_BIG &amp;&amp; !isBigEndian() ) ||
+<a name="l00116"></a>00116 (e==ENDIAN_LITTLE &amp;&amp; isBigEndian() ) )
+<a name="l00117"></a>00117 {
+<a name="l00118"></a>00118 mEndianSwap = <span class="keyword">true</span>;
+<a name="l00119"></a>00119 }
+<a name="l00120"></a>00120 <span class="keywordflow">else</span>
+<a name="l00121"></a>00121 {
+<a name="l00122"></a>00122 mEndianSwap = <span class="keyword">false</span>;
+<a name="l00123"></a>00123 }
+<a name="l00124"></a>00124 }
+<a name="l00125"></a>00125
+<a name="l00126"></a><a class="code" href="classPxFileBuf.html#b4ed3ad02b31b227c3d6f250aba56f79">00126</a> <a class="code" href="classPxFileBuf.html#17a9f8dcf7aeed5221f78ad2c785d122">EndianMode</a> getEndianMode(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
+<a name="l00127"></a>00127 <span class="keyword"> </span>{
+<a name="l00128"></a>00128 <span class="keywordflow">return</span> mEndianMode;
+<a name="l00129"></a>00129 }
+<a name="l00130"></a>00130
+<a name="l00131"></a>00131 <span class="keyword">virtual</span> uint32_t getFileLength(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0;
+<a name="l00132"></a>00132
+<a name="l00139"></a>00139 <span class="keyword">virtual</span> uint32_t seekRead(uint32_t loc) = 0;
+<a name="l00140"></a>00140
+<a name="l00147"></a>00147 <span class="keyword">virtual</span> uint32_t seekWrite(uint32_t loc) = 0;
+<a name="l00148"></a>00148
+<a name="l00157"></a>00157 <span class="keyword">virtual</span> uint32_t read(<span class="keywordtype">void</span> *mem,uint32_t len) = 0;
+<a name="l00158"></a>00158
+<a name="l00159"></a>00159
+<a name="l00168"></a>00168 <span class="keyword">virtual</span> uint32_t peek(<span class="keywordtype">void</span> *mem,uint32_t len) = 0;
+<a name="l00169"></a>00169
+<a name="l00178"></a>00178 <span class="keyword">virtual</span> uint32_t write(<span class="keyword">const</span> <span class="keywordtype">void</span> *mem,uint32_t len) = 0;
+<a name="l00179"></a>00179
+<a name="l00185"></a>00185 <span class="keyword">virtual</span> uint32_t tellRead(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0;
+<a name="l00186"></a>00186
+<a name="l00192"></a>00192 <span class="keyword">virtual</span> uint32_t tellWrite(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0;
+<a name="l00193"></a>00193
+<a name="l00197"></a>00197 <span class="keyword">virtual</span> <span class="keywordtype">void</span> flush(<span class="keywordtype">void</span>) = 0;
+<a name="l00198"></a>00198
+<a name="l00202"></a><a class="code" href="classPxFileBuf.html#19a8aa14b29743084e9d8f8e983151ce">00202</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPxFileBuf.html#19a8aa14b29743084e9d8f8e983151ce" title="Close the stream.">close</a>(<span class="keywordtype">void</span>) {}
+<a name="l00203"></a>00203
+<a name="l00204"></a><a class="code" href="classPxFileBuf.html#29883e06738c0d08d7ec102a9259e0ff">00204</a> <span class="keywordtype">void</span> release(<span class="keywordtype">void</span>)
+<a name="l00205"></a>00205 {
+<a name="l00206"></a>00206 <span class="keyword">delete</span> <span class="keyword">this</span>;
+<a name="l00207"></a>00207 }
+<a name="l00208"></a>00208
+<a name="l00209"></a><a class="code" href="classPxFileBuf.html#96838a3d29b0b91d2046b0aa4381eca6">00209</a> <span class="keyword">static</span> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> isBigEndian()
+<a name="l00210"></a>00210 {
+<a name="l00211"></a>00211 int32_t i = 1;
+<a name="l00212"></a>00212 <span class="keywordflow">return</span> *(<span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">char</span>*<span class="keyword">&gt;</span>(&amp;i))==0;
+<a name="l00213"></a>00213 }
+<a name="l00214"></a>00214
+<a name="l00215"></a><a class="code" href="classPxFileBuf.html#8f7aef54d065c1251bc729c32e898a9a">00215</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> swap2Bytes(<span class="keywordtype">void</span>* _data)<span class="keyword"> const</span>
+<a name="l00216"></a>00216 <span class="keyword"> </span>{
+<a name="l00217"></a>00217 <span class="keywordtype">char</span> *data = <span class="keyword">static_cast&lt;</span><span class="keywordtype">char</span> *<span class="keyword">&gt;</span>(_data);
+<a name="l00218"></a>00218 <span class="keywordtype">char</span> one_byte;
+<a name="l00219"></a>00219 one_byte = data[0]; data[0] = data[1]; data[1] = one_byte;
+<a name="l00220"></a>00220 }
+<a name="l00221"></a>00221
+<a name="l00222"></a><a class="code" href="classPxFileBuf.html#d3bec920f93f851d420875d3572db866">00222</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> swap4Bytes(<span class="keywordtype">void</span>* _data)<span class="keyword"> const</span>
+<a name="l00223"></a>00223 <span class="keyword"> </span>{
+<a name="l00224"></a>00224 <span class="keywordtype">char</span> *data = <span class="keyword">static_cast&lt;</span><span class="keywordtype">char</span> *<span class="keyword">&gt;</span>(_data);
+<a name="l00225"></a>00225 <span class="keywordtype">char</span> one_byte;
+<a name="l00226"></a>00226 one_byte = data[0]; data[0] = data[3]; data[3] = one_byte;
+<a name="l00227"></a>00227 one_byte = data[1]; data[1] = data[2]; data[2] = one_byte;
+<a name="l00228"></a>00228 }
+<a name="l00229"></a>00229
+<a name="l00230"></a><a class="code" href="classPxFileBuf.html#c26c76c0c790270716291cab5e29599f">00230</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> swap8Bytes(<span class="keywordtype">void</span> *_data)<span class="keyword"> const</span>
+<a name="l00231"></a>00231 <span class="keyword"> </span>{
+<a name="l00232"></a>00232 <span class="keywordtype">char</span> *data = <span class="keyword">static_cast&lt;</span><span class="keywordtype">char</span> *<span class="keyword">&gt;</span>(_data);
+<a name="l00233"></a>00233 <span class="keywordtype">char</span> one_byte;
+<a name="l00234"></a>00234 one_byte = data[0]; data[0] = data[7]; data[7] = one_byte;
+<a name="l00235"></a>00235 one_byte = data[1]; data[1] = data[6]; data[6] = one_byte;
+<a name="l00236"></a>00236 one_byte = data[2]; data[2] = data[5]; data[5] = one_byte;
+<a name="l00237"></a>00237 one_byte = data[3]; data[3] = data[4]; data[4] = one_byte;
+<a name="l00238"></a>00238 }
+<a name="l00239"></a>00239
+<a name="l00240"></a>00240
+<a name="l00241"></a><a class="code" href="classPxFileBuf.html#c4522927d2ddb0af751443de8292cf84">00241</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> storeDword(uint32_t v)
+<a name="l00242"></a>00242 {
+<a name="l00243"></a>00243 <span class="keywordflow">if</span> ( mEndianSwap )
+<a name="l00244"></a>00244 swap4Bytes(&amp;v);
+<a name="l00245"></a>00245
+<a name="l00246"></a>00246 write(&amp;v,<span class="keyword">sizeof</span>(v));
+<a name="l00247"></a>00247 }
+<a name="l00248"></a>00248
+<a name="l00249"></a><a class="code" href="classPxFileBuf.html#598346fa996f55e3e195cb5b5df86faa">00249</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> storeFloat(<span class="keywordtype">float</span> v)
+<a name="l00250"></a>00250 {
+<a name="l00251"></a>00251 <span class="keywordflow">if</span> ( mEndianSwap )
+<a name="l00252"></a>00252 swap4Bytes(&amp;v);
+<a name="l00253"></a>00253 write(&amp;v,<span class="keyword">sizeof</span>(v));
+<a name="l00254"></a>00254 }
+<a name="l00255"></a>00255
+<a name="l00256"></a><a class="code" href="classPxFileBuf.html#24b58be8fbcfdb159411494cc6ff89c9">00256</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> storeDouble(<span class="keywordtype">double</span> v)
+<a name="l00257"></a>00257 {
+<a name="l00258"></a>00258 <span class="keywordflow">if</span> ( mEndianSwap )
+<a name="l00259"></a>00259 swap8Bytes(&amp;v);
+<a name="l00260"></a>00260 write(&amp;v,<span class="keyword">sizeof</span>(v));
+<a name="l00261"></a>00261 }
+<a name="l00262"></a>00262
+<a name="l00263"></a><a class="code" href="classPxFileBuf.html#a050d73be42f3e7179374c5e91841392">00263</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> storeByte(uint8_t b)
+<a name="l00264"></a>00264 {
+<a name="l00265"></a>00265 write(&amp;b,<span class="keyword">sizeof</span>(b));
+<a name="l00266"></a>00266 }
+<a name="l00267"></a>00267
+<a name="l00268"></a><a class="code" href="classPxFileBuf.html#b37c7194f8a6728802b75f487b878499">00268</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> storeWord(uint16_t w)
+<a name="l00269"></a>00269 {
+<a name="l00270"></a>00270 <span class="keywordflow">if</span> ( mEndianSwap )
+<a name="l00271"></a>00271 swap2Bytes(&amp;w);
+<a name="l00272"></a>00272 write(&amp;w,<span class="keyword">sizeof</span>(w));
+<a name="l00273"></a>00273 }
+<a name="l00274"></a>00274
+<a name="l00275"></a><a class="code" href="classPxFileBuf.html#ceee4e153b50d05f28332f9996c6e94c">00275</a> uint8_t readByte(<span class="keywordtype">void</span>)
+<a name="l00276"></a>00276 {
+<a name="l00277"></a>00277 uint8_t v=0;
+<a name="l00278"></a>00278 read(&amp;v,<span class="keyword">sizeof</span>(v));
+<a name="l00279"></a>00279 <span class="keywordflow">return</span> v;
+<a name="l00280"></a>00280 }
+<a name="l00281"></a>00281
+<a name="l00282"></a><a class="code" href="classPxFileBuf.html#be4421a263b5e3c60c81f5e0068bc863">00282</a> uint16_t readWord(<span class="keywordtype">void</span>)
+<a name="l00283"></a>00283 {
+<a name="l00284"></a>00284 uint16_t v=0;
+<a name="l00285"></a>00285 read(&amp;v,<span class="keyword">sizeof</span>(v));
+<a name="l00286"></a>00286 <span class="keywordflow">if</span> ( mEndianSwap )
+<a name="l00287"></a>00287 swap2Bytes(&amp;v);
+<a name="l00288"></a>00288 <span class="keywordflow">return</span> v;
+<a name="l00289"></a>00289 }
+<a name="l00290"></a>00290
+<a name="l00291"></a><a class="code" href="classPxFileBuf.html#13cf0e0a8635da5e6b068489dee322a2">00291</a> uint32_t readDword(<span class="keywordtype">void</span>)
+<a name="l00292"></a>00292 {
+<a name="l00293"></a>00293 uint32_t v=0;
+<a name="l00294"></a>00294 read(&amp;v,<span class="keyword">sizeof</span>(v));
+<a name="l00295"></a>00295 <span class="keywordflow">if</span> ( mEndianSwap )
+<a name="l00296"></a>00296 swap4Bytes(&amp;v);
+<a name="l00297"></a>00297 <span class="keywordflow">return</span> v;
+<a name="l00298"></a>00298 }
+<a name="l00299"></a>00299
+<a name="l00300"></a><a class="code" href="classPxFileBuf.html#9725184b0e5aaa962e04c490be374f97">00300</a> <span class="keywordtype">float</span> readFloat(<span class="keywordtype">void</span>)
+<a name="l00301"></a>00301 {
+<a name="l00302"></a>00302 <span class="keywordtype">float</span> v=0;
+<a name="l00303"></a>00303 read(&amp;v,<span class="keyword">sizeof</span>(v));
+<a name="l00304"></a>00304 <span class="keywordflow">if</span> ( mEndianSwap )
+<a name="l00305"></a>00305 swap4Bytes(&amp;v);
+<a name="l00306"></a>00306 <span class="keywordflow">return</span> v;
+<a name="l00307"></a>00307 }
+<a name="l00308"></a>00308
+<a name="l00309"></a><a class="code" href="classPxFileBuf.html#de3c04f414a5d170b679c9731495f099">00309</a> <span class="keywordtype">double</span> readDouble(<span class="keywordtype">void</span>)
+<a name="l00310"></a>00310 {
+<a name="l00311"></a>00311 <span class="keywordtype">double</span> v=0;
+<a name="l00312"></a>00312 read(&amp;v,<span class="keyword">sizeof</span>(v));
+<a name="l00313"></a>00313 <span class="keywordflow">if</span> ( mEndianSwap )
+<a name="l00314"></a>00314 swap8Bytes(&amp;v);
+<a name="l00315"></a>00315 <span class="keywordflow">return</span> v;
+<a name="l00316"></a>00316 }
+<a name="l00317"></a>00317
+<a name="l00318"></a>00318 <span class="keyword">private</span>:
+<a name="l00319"></a><a class="code" href="classPxFileBuf.html#96cf617a20d1a36eee3e75557f7cd5c0">00319</a> <span class="keywordtype">bool</span> mEndianSwap; <span class="comment">// whether or not the endian should be swapped on the current platform</span>
+<a name="l00320"></a><a class="code" href="classPxFileBuf.html#ca5971c98389434b3a37847a110cbfc3">00320</a> <a class="code" href="classPxFileBuf.html#17a9f8dcf7aeed5221f78ad2c785d122">EndianMode</a> mEndianMode; <span class="comment">// the current endian mode behavior for the stream</span>
+<a name="l00321"></a>00321 };
+<a name="l00322"></a>00322
+<a name="l00323"></a>00323 <a class="code" href="group__foundation.html#g9aad3b08e5e15565ff39638b753f4a92">PX_POP_PACK</a>
+<a name="l00324"></a>00324
+<a name="l00325"></a>00325 <span class="preprocessor">#if !PX_DOXYGEN</span>
+<a name="l00326"></a>00326 <span class="preprocessor"></span>} <span class="comment">// end of namespace</span>
+<a name="l00327"></a>00327
+<a name="l00328"></a>00328 <span class="keyword">using namespace </span>general_PxIOStream2;
+<a name="l00329"></a>00329
+<a name="l00330"></a>00330 <span class="keyword">namespace </span>general_PxIOStream = general_PxIOStream2;
+<a name="l00331"></a>00331
+<a name="l00332"></a>00332 } <span class="comment">// end of namespace</span>
+<a name="l00333"></a>00333 <span class="preprocessor">#endif</span>
+<a name="l00334"></a>00334 <span class="preprocessor"></span>
+<a name="l00337"></a>00337 <span class="preprocessor">#endif // PSFILEBUFFER_PXFILEBUF_H</span>
+</pre></div></div>
+
+<hr style="width: 100%; height: 2px;"><br>
+Copyright &copy; 2008-2016 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a>
+</body>
+</html>