Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2352 lines
107KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>SdFat: ExFatFile Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">SdFat
  25. </div>
  26. </td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </div>
  31. <!-- end header part -->
  32. <!-- Generated by Doxygen 1.8.14 -->
  33. <script type="text/javascript">
  34. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. /* @license-end */
  37. </script>
  38. <script type="text/javascript" src="menudata.js"></script>
  39. <script type="text/javascript" src="menu.js"></script>
  40. <script type="text/javascript">
  41. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  42. $(function() {
  43. initMenu('',true,false,'search.php','Search');
  44. $(document).ready(function() { init_search(); });
  45. });
  46. /* @license-end */</script>
  47. <div id="main-nav"></div>
  48. <!-- window showing the filter options -->
  49. <div id="MSearchSelectWindow"
  50. onmouseover="return searchBox.OnSearchSelectShow()"
  51. onmouseout="return searchBox.OnSearchSelectHide()"
  52. onkeydown="return searchBox.OnSearchSelectKey(event)">
  53. </div>
  54. <!-- iframe showing the search results (closed by default) -->
  55. <div id="MSearchResultsWindow">
  56. <iframe src="javascript:void(0)" frameborder="0"
  57. name="MSearchResults" id="MSearchResults">
  58. </iframe>
  59. </div>
  60. </div><!-- top -->
  61. <div class="header">
  62. <div class="summary">
  63. <a href="#pub-methods">Public Member Functions</a> &#124;
  64. <a href="#friends">Friends</a> &#124;
  65. <a href="class_ex_fat_file-members.html">List of all members</a> </div>
  66. <div class="headertitle">
  67. <div class="title">ExFatFile Class Reference</div> </div>
  68. </div><!--header-->
  69. <div class="contents">
  70. <p>Basic file class.
  71. <a href="class_ex_fat_file.html#details">More...</a></p>
  72. <p><code>#include &lt;ExFatFile.h&gt;</code></p>
  73. <div class="dynheader">
  74. Inheritance diagram for ExFatFile:</div>
  75. <div class="dyncontent">
  76. <div class="center"><img src="class_ex_fat_file__inherit__graph.png" border="0" usemap="#_ex_fat_file_inherit__map" alt="Inheritance graph"/></div>
  77. <map name="_ex_fat_file_inherit__map" id="_ex_fat_file_inherit__map">
  78. <area shape="rect" id="node2" href="class_stream_file.html" title="StreamFile\&lt; ExFatFile,\l uint64_t \&gt;" alt="" coords="5,80,163,121"/>
  79. <area shape="rect" id="node3" href="class_ex_file.html" title="exFAT file with Arduino Stream. " alt="" coords="55,169,113,196"/>
  80. </map>
  81. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  82. <table class="memberdecls">
  83. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  84. Public Member Functions</h2></td></tr>
  85. <tr class="memitem:a1eae02704b69e903ea174c5d0744debb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a1eae02704b69e903ea174c5d0744debb">available</a> ()</td></tr>
  86. <tr class="separator:a1eae02704b69e903ea174c5d0744debb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:adcf47e15b819fe2d6faac2a027ab30f5"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#adcf47e15b819fe2d6faac2a027ab30f5">available64</a> ()</td></tr>
  88. <tr class="separator:adcf47e15b819fe2d6faac2a027ab30f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  89. <tr class="memitem:ac2004e7bf328b3edda7d4c3acba2726f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ac2004e7bf328b3edda7d4c3acba2726f">clearError</a> ()</td></tr>
  90. <tr class="separator:ac2004e7bf328b3edda7d4c3acba2726f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. <tr class="memitem:abc0d3863895c17df53930bdfa84cb06f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#abc0d3863895c17df53930bdfa84cb06f">clearWriteError</a> ()</td></tr>
  92. <tr class="separator:abc0d3863895c17df53930bdfa84cb06f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:a7ba9e04099bdf8fd34220ebfdde72867"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a7ba9e04099bdf8fd34220ebfdde72867">close</a> ()</td></tr>
  94. <tr class="separator:a7ba9e04099bdf8fd34220ebfdde72867"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:ab49396aad3f6500aa19f75490dc26719"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ab49396aad3f6500aa19f75490dc26719">curPosition</a> () const</td></tr>
  96. <tr class="separator:ab49396aad3f6500aa19f75490dc26719"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:ada4dde9f2eed36bf556fcf1bd3d28ccf"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ada4dde9f2eed36bf556fcf1bd3d28ccf">dataLength</a> ()</td></tr>
  98. <tr class="separator:ada4dde9f2eed36bf556fcf1bd3d28ccf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a5e3baa5d5269c2948cfaf604c42f6a16"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a5e3baa5d5269c2948cfaf604c42f6a16">dirIndex</a> ()</td></tr>
  100. <tr class="separator:a5e3baa5d5269c2948cfaf604c42f6a16"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. <tr class="memitem:a3c1303c37cad370b33f0279524c93720"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a3c1303c37cad370b33f0279524c93720">ExFatFile</a> ()</td></tr>
  102. <tr class="separator:a3c1303c37cad370b33f0279524c93720"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:a22a717ddc6d2004c540c67a14264d9dd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a22a717ddc6d2004c540c67a14264d9dd">exists</a> (const ExChar_t *path)</td></tr>
  104. <tr class="separator:a22a717ddc6d2004c540c67a14264d9dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:a8614bcbf04b7bbfc70fe36d2fa7f70c1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a8614bcbf04b7bbfc70fe36d2fa7f70c1">fgetpos</a> (fspos_t *pos)</td></tr>
  106. <tr class="separator:a8614bcbf04b7bbfc70fe36d2fa7f70c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:abc69c9dfc8fdb4ebf9db3bc37c879dc6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#abc69c9dfc8fdb4ebf9db3bc37c879dc6">fgets</a> (char *str, int num, char *delim=<a class="el" href="_stdio_stream_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>)</td></tr>
  108. <tr class="separator:abc69c9dfc8fdb4ebf9db3bc37c879dc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:af2c08909b62b01f3edc4ee0c51ea7435"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#af2c08909b62b01f3edc4ee0c51ea7435">fileSize</a> ()</td></tr>
  110. <tr class="separator:af2c08909b62b01f3edc4ee0c51ea7435"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:ab16f38103a13394bffd8aa5be830c4fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ab16f38103a13394bffd8aa5be830c4fe">flush</a> ()</td></tr>
  112. <tr class="separator:ab16f38103a13394bffd8aa5be830c4fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:aea1e4d0c0981081774dc3c7cd3c55264"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#aea1e4d0c0981081774dc3c7cd3c55264">fsetpos</a> (const fspos_t *pos)</td></tr>
  114. <tr class="separator:aea1e4d0c0981081774dc3c7cd3c55264"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:ac697224450ca216c60585d25f5f6e310"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ac697224450ca216c60585d25f5f6e310">getError</a> ()</td></tr>
  116. <tr class="separator:ac697224450ca216c60585d25f5f6e310"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:aba93e2c18be9fa4df7e067b7d6ac5906"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#aba93e2c18be9fa4df7e067b7d6ac5906">getName</a> (ExChar_t *name, size_t size)</td></tr>
  118. <tr class="separator:aba93e2c18be9fa4df7e067b7d6ac5906"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:a01da9896a59671a61f90dd20c3ac5d07"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a01da9896a59671a61f90dd20c3ac5d07">getWriteError</a> ()</td></tr>
  120. <tr class="separator:a01da9896a59671a61f90dd20c3ac5d07"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a7a167102bd47b7cf91167b69f8cc57d1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a7a167102bd47b7cf91167b69f8cc57d1">isContiguous</a> () const</td></tr>
  122. <tr class="separator:a7a167102bd47b7cf91167b69f8cc57d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:ad0a3687bd95bed5b216651335e66b500"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ad0a3687bd95bed5b216651335e66b500">isDir</a> () const</td></tr>
  124. <tr class="separator:ad0a3687bd95bed5b216651335e66b500"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:af601285f95db8398c140b3927cf9111c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#af601285f95db8398c140b3927cf9111c">isFile</a> () const</td></tr>
  126. <tr class="separator:af601285f95db8398c140b3927cf9111c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:ac926285fa4321ebee28fa91beb511eae"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ac926285fa4321ebee28fa91beb511eae">isHidden</a> () const</td></tr>
  128. <tr class="separator:ac926285fa4321ebee28fa91beb511eae"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:a804c34bbe3ebefe2b6c1d77ff8d49a35"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a804c34bbe3ebefe2b6c1d77ff8d49a35">isOpen</a> () const</td></tr>
  130. <tr class="separator:a804c34bbe3ebefe2b6c1d77ff8d49a35"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a9ca137dfba2c7772910f4d2b3fdd9411"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a9ca137dfba2c7772910f4d2b3fdd9411">isReadable</a> () const</td></tr>
  132. <tr class="separator:a9ca137dfba2c7772910f4d2b3fdd9411"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:a14d160bfbfb39717746b93fa2eda5739"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a14d160bfbfb39717746b93fa2eda5739">isReadOnly</a> () const</td></tr>
  134. <tr class="separator:a14d160bfbfb39717746b93fa2eda5739"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:ad9f8e7afcf749ebcaaf055bd569dc7da"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ad9f8e7afcf749ebcaaf055bd569dc7da">isRoot</a> () const</td></tr>
  136. <tr class="separator:ad9f8e7afcf749ebcaaf055bd569dc7da"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <tr class="memitem:ad7e02a1db8fb5a90288bb4679e9ddcb9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ad7e02a1db8fb5a90288bb4679e9ddcb9">isSubDir</a> () const</td></tr>
  138. <tr class="separator:ad7e02a1db8fb5a90288bb4679e9ddcb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:a04d1c43e80743f8c1a51b64062ce16dd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a04d1c43e80743f8c1a51b64062ce16dd">isWritable</a> () const</td></tr>
  140. <tr class="separator:a04d1c43e80743f8c1a51b64062ce16dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:aa0e074c891f3db5ea2ebd491667b03a6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#aa0e074c891f3db5ea2ebd491667b03a6">ls</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr)</td></tr>
  142. <tr class="separator:aa0e074c891f3db5ea2ebd491667b03a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:a09f8beb55f939874e93c1df6c8a046d4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a09f8beb55f939874e93c1df6c8a046d4">ls</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr, uint8_t flags, uint8_t indent=0)</td></tr>
  144. <tr class="separator:a09f8beb55f939874e93c1df6c8a046d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:a3a393624d52854e74bf385c9e513a86d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a3a393624d52854e74bf385c9e513a86d">mkdir</a> (<a class="el" href="class_ex_fat_file.html">ExFatFile</a> *parent, const ExChar_t *path, bool pFlag=true)</td></tr>
  146. <tr class="separator:a3a393624d52854e74bf385c9e513a86d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:ad0be05c5c7092317089872778052cbd7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ad0be05c5c7092317089872778052cbd7">open</a> (<a class="el" href="class_ex_fat_file.html">ExFatFile</a> *dirFile, const ExChar_t *path, oflag_t oflag)</td></tr>
  148. <tr class="separator:ad0be05c5c7092317089872778052cbd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:a825447643e6c9e8284a3ed78e3363788"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a825447643e6c9e8284a3ed78e3363788">open</a> (<a class="el" href="class_ex_fat_volume.html">ExFatVolume</a> *vol, const ExChar_t *path, int oflag)</td></tr>
  150. <tr class="separator:a825447643e6c9e8284a3ed78e3363788"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:a414b64dc30551e05dcc46f04e0f6413a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a414b64dc30551e05dcc46f04e0f6413a">open</a> (<a class="el" href="class_ex_fat_file.html">ExFatFile</a> *dirFile, uint32_t index, oflag_t oflag)</td></tr>
  152. <tr class="separator:a414b64dc30551e05dcc46f04e0f6413a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:ab1e224aba9eb796c7ad48062cc1434c2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ab1e224aba9eb796c7ad48062cc1434c2">open</a> (const ExChar_t *path, int oflag=0X00)</td></tr>
  154. <tr class="separator:ab1e224aba9eb796c7ad48062cc1434c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:a89b6021cf70b7adb9feb162260d5a101"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a89b6021cf70b7adb9feb162260d5a101">openNext</a> (<a class="el" href="class_ex_fat_file.html">ExFatFile</a> *dirFile, oflag_t oflag=0X00)</td></tr>
  156. <tr class="separator:a89b6021cf70b7adb9feb162260d5a101"><td class="memSeparator" colspan="2">&#160;</td></tr>
  157. <tr class="memitem:af664c1da1bfa0bb5f6eb933bc25f757e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#af664c1da1bfa0bb5f6eb933bc25f757e">openRoot</a> (<a class="el" href="class_ex_fat_volume.html">ExFatVolume</a> *vol)</td></tr>
  158. <tr class="separator:af664c1da1bfa0bb5f6eb933bc25f757e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:aa1abbd813f27d488f0ff439ccbc9ca98"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#aa1abbd813f27d488f0ff439ccbc9ca98">operator bool</a> ()</td></tr>
  160. <tr class="separator:aa1abbd813f27d488f0ff439ccbc9ca98"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. <tr class="memitem:afc2e375faa696545f7ebbf583faae72a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#afc2e375faa696545f7ebbf583faae72a">peek</a> ()</td></tr>
  162. <tr class="separator:afc2e375faa696545f7ebbf583faae72a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  163. <tr class="memitem:a35a5093014e80965e49c84b61780556f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a35a5093014e80965e49c84b61780556f">preAllocate</a> (uint64_t length)</td></tr>
  164. <tr class="separator:a35a5093014e80965e49c84b61780556f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  165. <tr class="memitem:ad9ba8aa00b9db683d40fc2989dbe1922"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ad9ba8aa00b9db683d40fc2989dbe1922">printAccessDateTime</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr)</td></tr>
  166. <tr class="separator:ad9ba8aa00b9db683d40fc2989dbe1922"><td class="memSeparator" colspan="2">&#160;</td></tr>
  167. <tr class="memitem:a7318b2d7594d6ba52421c413f5fc35cd"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a7318b2d7594d6ba52421c413f5fc35cd">printCreateDateTime</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr)</td></tr>
  168. <tr class="separator:a7318b2d7594d6ba52421c413f5fc35cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  169. <tr class="memitem:a496ac61e367a24665425d54956a46346"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a496ac61e367a24665425d54956a46346">printField</a> (double value, char term, uint8_t prec=2)</td></tr>
  170. <tr class="separator:a496ac61e367a24665425d54956a46346"><td class="memSeparator" colspan="2">&#160;</td></tr>
  171. <tr class="memitem:a70eda4191df90f608694c1faede7fb33"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a70eda4191df90f608694c1faede7fb33">printField</a> (float value, char term, uint8_t prec=2)</td></tr>
  172. <tr class="separator:a70eda4191df90f608694c1faede7fb33"><td class="memSeparator" colspan="2">&#160;</td></tr>
  173. <tr class="memitem:a9759c13e804c01ff9e7e2ac8fbabc5b8"><td class="memTemplParams" colspan="2">template&lt;typename Type &gt; </td></tr>
  174. <tr class="memitem:a9759c13e804c01ff9e7e2ac8fbabc5b8"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a9759c13e804c01ff9e7e2ac8fbabc5b8">printField</a> (Type value, char term)</td></tr>
  175. <tr class="separator:a9759c13e804c01ff9e7e2ac8fbabc5b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  176. <tr class="memitem:a16d527f98cff3ffd3ba8bc594a22d186"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a16d527f98cff3ffd3ba8bc594a22d186">printFileSize</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr)</td></tr>
  177. <tr class="separator:a16d527f98cff3ffd3ba8bc594a22d186"><td class="memSeparator" colspan="2">&#160;</td></tr>
  178. <tr class="memitem:a16488d3e0d946f108240b7d6c536c6f4"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a16488d3e0d946f108240b7d6c536c6f4">printModifyDateTime</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr)</td></tr>
  179. <tr class="separator:a16488d3e0d946f108240b7d6c536c6f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. <tr class="memitem:a095c0a865e5e5b6463c3dc0c90680635"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a095c0a865e5e5b6463c3dc0c90680635">printName</a> (<a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *pr)</td></tr>
  181. <tr class="separator:a095c0a865e5e5b6463c3dc0c90680635"><td class="memSeparator" colspan="2">&#160;</td></tr>
  182. <tr class="memitem:a77f4fea0aae0c8bae926fdfbba260a55"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a77f4fea0aae0c8bae926fdfbba260a55">read</a> ()</td></tr>
  183. <tr class="separator:a77f4fea0aae0c8bae926fdfbba260a55"><td class="memSeparator" colspan="2">&#160;</td></tr>
  184. <tr class="memitem:a5ae5477efe55179cf07e173c62654313"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a5ae5477efe55179cf07e173c62654313">read</a> (void *buf, size_t count)</td></tr>
  185. <tr class="separator:a5ae5477efe55179cf07e173c62654313"><td class="memSeparator" colspan="2">&#160;</td></tr>
  186. <tr class="memitem:a8e88c8e79551a72cc98310038514c47a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a8e88c8e79551a72cc98310038514c47a">remove</a> ()</td></tr>
  187. <tr class="separator:a8e88c8e79551a72cc98310038514c47a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  188. <tr class="memitem:ad10417a851dba3d40a78eb2c0eb11fff"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ad10417a851dba3d40a78eb2c0eb11fff">remove</a> (const ExChar_t *path)</td></tr>
  189. <tr class="separator:ad10417a851dba3d40a78eb2c0eb11fff"><td class="memSeparator" colspan="2">&#160;</td></tr>
  190. <tr class="memitem:aab50b2646035f76834c75230d2b55c64"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#aab50b2646035f76834c75230d2b55c64">rename</a> (const ExChar_t *newPath)</td></tr>
  191. <tr class="separator:aab50b2646035f76834c75230d2b55c64"><td class="memSeparator" colspan="2">&#160;</td></tr>
  192. <tr class="memitem:aea570a3b6afbe633d874803b137a46b8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#aea570a3b6afbe633d874803b137a46b8">rename</a> (<a class="el" href="class_ex_fat_file.html">ExFatFile</a> *dirFile, const ExChar_t *newPath)</td></tr>
  193. <tr class="separator:aea570a3b6afbe633d874803b137a46b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  194. <tr class="memitem:a3c1d3ef65284ffb13ed3ceee472adf9a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a3c1d3ef65284ffb13ed3ceee472adf9a">rewind</a> ()</td></tr>
  195. <tr class="separator:a3c1d3ef65284ffb13ed3ceee472adf9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  196. <tr class="memitem:a0165e0fde12a53e419bd92cd37f9cfed"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a0165e0fde12a53e419bd92cd37f9cfed">rmdir</a> ()</td></tr>
  197. <tr class="separator:a0165e0fde12a53e419bd92cd37f9cfed"><td class="memSeparator" colspan="2">&#160;</td></tr>
  198. <tr class="memitem:ab42494880cf229adfb0fc8edb0647686"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#ab42494880cf229adfb0fc8edb0647686">seekCur</a> (int64_t offset)</td></tr>
  199. <tr class="separator:ab42494880cf229adfb0fc8edb0647686"><td class="memSeparator" colspan="2">&#160;</td></tr>
  200. <tr class="memitem:a2994a71751ed4f137f48b2e9a7d94091"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a2994a71751ed4f137f48b2e9a7d94091">seekEnd</a> (int64_t offset=0)</td></tr>
  201. <tr class="separator:a2994a71751ed4f137f48b2e9a7d94091"><td class="memSeparator" colspan="2">&#160;</td></tr>
  202. <tr class="memitem:a9834c4da2f14c66f4bda26938ebb36f6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a9834c4da2f14c66f4bda26938ebb36f6">seekSet</a> (uint64_t pos)</td></tr>
  203. <tr class="separator:a9834c4da2f14c66f4bda26938ebb36f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  204. <tr class="memitem:a2cb3638069afd2d01b79e5dff1a66f55"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a2cb3638069afd2d01b79e5dff1a66f55">sync</a> ()</td></tr>
  205. <tr class="separator:a2cb3638069afd2d01b79e5dff1a66f55"><td class="memSeparator" colspan="2">&#160;</td></tr>
  206. <tr class="memitem:a6d3ab10983e206401ebd5c24a1c46174"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a6d3ab10983e206401ebd5c24a1c46174">timestamp</a> (uint8_t flags, uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second)</td></tr>
  207. <tr class="separator:a6d3ab10983e206401ebd5c24a1c46174"><td class="memSeparator" colspan="2">&#160;</td></tr>
  208. <tr class="memitem:aca37955d3c7cce40f7f9e1ea078e5636"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#aca37955d3c7cce40f7f9e1ea078e5636">truncate</a> ()</td></tr>
  209. <tr class="separator:aca37955d3c7cce40f7f9e1ea078e5636"><td class="memSeparator" colspan="2">&#160;</td></tr>
  210. <tr class="memitem:a6262b0d6d43d2a426953a0a7d90f624f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a6262b0d6d43d2a426953a0a7d90f624f">truncate</a> (uint64_t length)</td></tr>
  211. <tr class="separator:a6262b0d6d43d2a426953a0a7d90f624f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  212. <tr class="memitem:afc8af11ba8e3a830dff1dd5e59446243"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#afc8af11ba8e3a830dff1dd5e59446243">validLength</a> ()</td></tr>
  213. <tr class="separator:afc8af11ba8e3a830dff1dd5e59446243"><td class="memSeparator" colspan="2">&#160;</td></tr>
  214. <tr class="memitem:a6fb2905a5e363554a5118b5d1322cd87"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a6fb2905a5e363554a5118b5d1322cd87">write</a> (const char *str)</td></tr>
  215. <tr class="separator:a6fb2905a5e363554a5118b5d1322cd87"><td class="memSeparator" colspan="2">&#160;</td></tr>
  216. <tr class="memitem:afd011d17d66707623c28927a63f81015"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#afd011d17d66707623c28927a63f81015">write</a> (uint8_t b)</td></tr>
  217. <tr class="separator:afd011d17d66707623c28927a63f81015"><td class="memSeparator" colspan="2">&#160;</td></tr>
  218. <tr class="memitem:abc1423c7b550614d1067e7173f8b46a8"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#abc1423c7b550614d1067e7173f8b46a8">write</a> (const void *buf, size_t count)</td></tr>
  219. <tr class="separator:abc1423c7b550614d1067e7173f8b46a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  220. </table><table class="memberdecls">
  221. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
  222. Friends</h2></td></tr>
  223. <tr class="memitem:a064869383f7639b113eb0aaf0b84335c"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ex_fat_file.html#a064869383f7639b113eb0aaf0b84335c">ExFatVolume</a></td></tr>
  224. <tr class="separator:a064869383f7639b113eb0aaf0b84335c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  225. </table>
  226. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  227. <div class="textblock"><p>Basic file class. </p>
  228. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  229. <a id="a3c1303c37cad370b33f0279524c93720"></a>
  230. <h2 class="memtitle"><span class="permalink"><a href="#a3c1303c37cad370b33f0279524c93720">&#9670;&nbsp;</a></span>ExFatFile()</h2>
  231. <div class="memitem">
  232. <div class="memproto">
  233. <table class="mlabels">
  234. <tr>
  235. <td class="mlabels-left">
  236. <table class="memname">
  237. <tr>
  238. <td class="memname">ExFatFile::ExFatFile </td>
  239. <td>(</td>
  240. <td class="paramname"></td><td>)</td>
  241. <td></td>
  242. </tr>
  243. </table>
  244. </td>
  245. <td class="mlabels-right">
  246. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  247. </tr>
  248. </table>
  249. </div><div class="memdoc">
  250. <p>Create an instance. </p>
  251. </div>
  252. </div>
  253. <h2 class="groupheader">Member Function Documentation</h2>
  254. <a id="a1eae02704b69e903ea174c5d0744debb"></a>
  255. <h2 class="memtitle"><span class="permalink"><a href="#a1eae02704b69e903ea174c5d0744debb">&#9670;&nbsp;</a></span>available()</h2>
  256. <div class="memitem">
  257. <div class="memproto">
  258. <table class="mlabels">
  259. <tr>
  260. <td class="mlabels-left">
  261. <table class="memname">
  262. <tr>
  263. <td class="memname">int ExFatFile::available </td>
  264. <td>(</td>
  265. <td class="paramname"></td><td>)</td>
  266. <td></td>
  267. </tr>
  268. </table>
  269. </td>
  270. <td class="mlabels-right">
  271. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  272. </tr>
  273. </table>
  274. </div><div class="memdoc">
  275. <dl class="section return"><dt>Returns</dt><dd>The number of bytes available from the current position to EOF for normal files. INT_MAX is returned for very large files.</dd></dl>
  276. <p><a class="el" href="class_ex_fat_file.html#adcf47e15b819fe2d6faac2a027ab30f5">available64()</a> is recomended for very large files.</p>
  277. <p>Zero is returned for directory files. </p>
  278. </div>
  279. </div>
  280. <a id="adcf47e15b819fe2d6faac2a027ab30f5"></a>
  281. <h2 class="memtitle"><span class="permalink"><a href="#adcf47e15b819fe2d6faac2a027ab30f5">&#9670;&nbsp;</a></span>available64()</h2>
  282. <div class="memitem">
  283. <div class="memproto">
  284. <table class="mlabels">
  285. <tr>
  286. <td class="mlabels-left">
  287. <table class="memname">
  288. <tr>
  289. <td class="memname">uint64_t ExFatFile::available64 </td>
  290. <td>(</td>
  291. <td class="paramname"></td><td>)</td>
  292. <td></td>
  293. </tr>
  294. </table>
  295. </td>
  296. <td class="mlabels-right">
  297. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  298. </tr>
  299. </table>
  300. </div><div class="memdoc">
  301. <dl class="section return"><dt>Returns</dt><dd>The number of bytes available from the current position to EOF for normal files. Zero is returned for directory files. </dd></dl>
  302. </div>
  303. </div>
  304. <a id="ac2004e7bf328b3edda7d4c3acba2726f"></a>
  305. <h2 class="memtitle"><span class="permalink"><a href="#ac2004e7bf328b3edda7d4c3acba2726f">&#9670;&nbsp;</a></span>clearError()</h2>
  306. <div class="memitem">
  307. <div class="memproto">
  308. <table class="mlabels">
  309. <tr>
  310. <td class="mlabels-left">
  311. <table class="memname">
  312. <tr>
  313. <td class="memname">void ExFatFile::clearError </td>
  314. <td>(</td>
  315. <td class="paramname"></td><td>)</td>
  316. <td></td>
  317. </tr>
  318. </table>
  319. </td>
  320. <td class="mlabels-right">
  321. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  322. </tr>
  323. </table>
  324. </div><div class="memdoc">
  325. <p>Clear all error bits. </p>
  326. </div>
  327. </div>
  328. <a id="abc0d3863895c17df53930bdfa84cb06f"></a>
  329. <h2 class="memtitle"><span class="permalink"><a href="#abc0d3863895c17df53930bdfa84cb06f">&#9670;&nbsp;</a></span>clearWriteError()</h2>
  330. <div class="memitem">
  331. <div class="memproto">
  332. <table class="mlabels">
  333. <tr>
  334. <td class="mlabels-left">
  335. <table class="memname">
  336. <tr>
  337. <td class="memname">void ExFatFile::clearWriteError </td>
  338. <td>(</td>
  339. <td class="paramname"></td><td>)</td>
  340. <td></td>
  341. </tr>
  342. </table>
  343. </td>
  344. <td class="mlabels-right">
  345. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  346. </tr>
  347. </table>
  348. </div><div class="memdoc">
  349. <p>Set writeError to zero </p>
  350. </div>
  351. </div>
  352. <a id="a7ba9e04099bdf8fd34220ebfdde72867"></a>
  353. <h2 class="memtitle"><span class="permalink"><a href="#a7ba9e04099bdf8fd34220ebfdde72867">&#9670;&nbsp;</a></span>close()</h2>
  354. <div class="memitem">
  355. <div class="memproto">
  356. <table class="memname">
  357. <tr>
  358. <td class="memname">bool ExFatFile::close </td>
  359. <td>(</td>
  360. <td class="paramname"></td><td>)</td>
  361. <td></td>
  362. </tr>
  363. </table>
  364. </div><div class="memdoc">
  365. <p>Close a file and force cached data and directory information to be written to the storage device.</p>
  366. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  367. </div>
  368. </div>
  369. <a id="ab49396aad3f6500aa19f75490dc26719"></a>
  370. <h2 class="memtitle"><span class="permalink"><a href="#ab49396aad3f6500aa19f75490dc26719">&#9670;&nbsp;</a></span>curPosition()</h2>
  371. <div class="memitem">
  372. <div class="memproto">
  373. <table class="mlabels">
  374. <tr>
  375. <td class="mlabels-left">
  376. <table class="memname">
  377. <tr>
  378. <td class="memname">uint64_t ExFatFile::curPosition </td>
  379. <td>(</td>
  380. <td class="paramname"></td><td>)</td>
  381. <td> const</td>
  382. </tr>
  383. </table>
  384. </td>
  385. <td class="mlabels-right">
  386. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  387. </tr>
  388. </table>
  389. </div><div class="memdoc">
  390. <dl class="section return"><dt>Returns</dt><dd>The current position for a file or directory. </dd></dl>
  391. </div>
  392. </div>
  393. <a id="ada4dde9f2eed36bf556fcf1bd3d28ccf"></a>
  394. <h2 class="memtitle"><span class="permalink"><a href="#ada4dde9f2eed36bf556fcf1bd3d28ccf">&#9670;&nbsp;</a></span>dataLength()</h2>
  395. <div class="memitem">
  396. <div class="memproto">
  397. <table class="mlabels">
  398. <tr>
  399. <td class="mlabels-left">
  400. <table class="memname">
  401. <tr>
  402. <td class="memname">uint64_t ExFatFile::dataLength </td>
  403. <td>(</td>
  404. <td class="paramname"></td><td>)</td>
  405. <td></td>
  406. </tr>
  407. </table>
  408. </td>
  409. <td class="mlabels-right">
  410. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  411. </tr>
  412. </table>
  413. </div><div class="memdoc">
  414. <dl class="section return"><dt>Returns</dt><dd>Total data length for file. </dd></dl>
  415. </div>
  416. </div>
  417. <a id="a5e3baa5d5269c2948cfaf604c42f6a16"></a>
  418. <h2 class="memtitle"><span class="permalink"><a href="#a5e3baa5d5269c2948cfaf604c42f6a16">&#9670;&nbsp;</a></span>dirIndex()</h2>
  419. <div class="memitem">
  420. <div class="memproto">
  421. <table class="mlabels">
  422. <tr>
  423. <td class="mlabels-left">
  424. <table class="memname">
  425. <tr>
  426. <td class="memname">uint32_t ExFatFile::dirIndex </td>
  427. <td>(</td>
  428. <td class="paramname"></td><td>)</td>
  429. <td></td>
  430. </tr>
  431. </table>
  432. </td>
  433. <td class="mlabels-right">
  434. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  435. </tr>
  436. </table>
  437. </div><div class="memdoc">
  438. <dl class="section return"><dt>Returns</dt><dd>Directory entry index. </dd></dl>
  439. </div>
  440. </div>
  441. <a id="a22a717ddc6d2004c540c67a14264d9dd"></a>
  442. <h2 class="memtitle"><span class="permalink"><a href="#a22a717ddc6d2004c540c67a14264d9dd">&#9670;&nbsp;</a></span>exists()</h2>
  443. <div class="memitem">
  444. <div class="memproto">
  445. <table class="mlabels">
  446. <tr>
  447. <td class="mlabels-left">
  448. <table class="memname">
  449. <tr>
  450. <td class="memname">bool ExFatFile::exists </td>
  451. <td>(</td>
  452. <td class="paramtype">const ExChar_t *&#160;</td>
  453. <td class="paramname"><em>path</em></td><td>)</td>
  454. <td></td>
  455. </tr>
  456. </table>
  457. </td>
  458. <td class="mlabels-right">
  459. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  460. </tr>
  461. </table>
  462. </div><div class="memdoc">
  463. <p>Test for the existence of a file in a directory</p>
  464. <dl class="params"><dt>Parameters</dt><dd>
  465. <table class="params">
  466. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>Path of the file to be tested for.</td></tr>
  467. </table>
  468. </dd>
  469. </dl>
  470. <p>The calling instance must be an open directory file.</p>
  471. <p>dirFile.exists("TOFIND.TXT") searches for "TOFIND.TXT" in the directory dirFile.</p>
  472. <dl class="section return"><dt>Returns</dt><dd>true if the file exists else false. </dd></dl>
  473. </div>
  474. </div>
  475. <a id="a8614bcbf04b7bbfc70fe36d2fa7f70c1"></a>
  476. <h2 class="memtitle"><span class="permalink"><a href="#a8614bcbf04b7bbfc70fe36d2fa7f70c1">&#9670;&nbsp;</a></span>fgetpos()</h2>
  477. <div class="memitem">
  478. <div class="memproto">
  479. <table class="memname">
  480. <tr>
  481. <td class="memname">void ExFatFile::fgetpos </td>
  482. <td>(</td>
  483. <td class="paramtype">fspos_t *&#160;</td>
  484. <td class="paramname"><em>pos</em></td><td>)</td>
  485. <td></td>
  486. </tr>
  487. </table>
  488. </div><div class="memdoc">
  489. <p>get position for streams </p><dl class="params"><dt>Parameters</dt><dd>
  490. <table class="params">
  491. <tr><td class="paramdir">[out]</td><td class="paramname">pos</td><td>struct to receive position </td></tr>
  492. </table>
  493. </dd>
  494. </dl>
  495. </div>
  496. </div>
  497. <a id="abc69c9dfc8fdb4ebf9db3bc37c879dc6"></a>
  498. <h2 class="memtitle"><span class="permalink"><a href="#abc69c9dfc8fdb4ebf9db3bc37c879dc6">&#9670;&nbsp;</a></span>fgets()</h2>
  499. <div class="memitem">
  500. <div class="memproto">
  501. <table class="memname">
  502. <tr>
  503. <td class="memname">int ExFatFile::fgets </td>
  504. <td>(</td>
  505. <td class="paramtype">char *&#160;</td>
  506. <td class="paramname"><em>str</em>, </td>
  507. </tr>
  508. <tr>
  509. <td class="paramkey"></td>
  510. <td></td>
  511. <td class="paramtype">int&#160;</td>
  512. <td class="paramname"><em>num</em>, </td>
  513. </tr>
  514. <tr>
  515. <td class="paramkey"></td>
  516. <td></td>
  517. <td class="paramtype">char *&#160;</td>
  518. <td class="paramname"><em>delim</em> = <code><a class="el" href="_stdio_stream_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a></code>&#160;</td>
  519. </tr>
  520. <tr>
  521. <td></td>
  522. <td>)</td>
  523. <td></td><td></td>
  524. </tr>
  525. </table>
  526. </div><div class="memdoc">
  527. <p>Get a string from a file.</p>
  528. <p><a class="el" href="class_ex_fat_file.html#abc69c9dfc8fdb4ebf9db3bc37c879dc6">fgets()</a> reads bytes from a file into the array pointed to by <em>str</em>, until <em>num</em> - 1 bytes are read, or a delimiter is read and transferred to <em>str</em>, or end-of-file is encountered. The string is then terminated with a null byte.</p>
  529. <p><a class="el" href="class_ex_fat_file.html#abc69c9dfc8fdb4ebf9db3bc37c879dc6">fgets()</a> deletes CR, '\r', from the string. This insures only a '\n' terminates the string for Windows text files which use CRLF for newline.</p>
  530. <dl class="params"><dt>Parameters</dt><dd>
  531. <table class="params">
  532. <tr><td class="paramdir">[out]</td><td class="paramname">str</td><td>Pointer to the array where the string is stored. </td></tr>
  533. <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>Maximum number of characters to be read (including the final null byte). Usually the length of the array <em>str</em> is used. </td></tr>
  534. <tr><td class="paramdir">[in]</td><td class="paramname">delim</td><td>Optional set of delimiters. The default is "\n".</td></tr>
  535. </table>
  536. </dd>
  537. </dl>
  538. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_ex_fat_file.html#abc69c9dfc8fdb4ebf9db3bc37c879dc6">fgets()</a> returns the length of the string in <em>str</em>. If no data is read, <a class="el" href="class_ex_fat_file.html#abc69c9dfc8fdb4ebf9db3bc37c879dc6">fgets()</a> returns zero for EOF or -1 if an error occurred. </dd></dl>
  539. </div>
  540. </div>
  541. <a id="af2c08909b62b01f3edc4ee0c51ea7435"></a>
  542. <h2 class="memtitle"><span class="permalink"><a href="#af2c08909b62b01f3edc4ee0c51ea7435">&#9670;&nbsp;</a></span>fileSize()</h2>
  543. <div class="memitem">
  544. <div class="memproto">
  545. <table class="mlabels">
  546. <tr>
  547. <td class="mlabels-left">
  548. <table class="memname">
  549. <tr>
  550. <td class="memname">uint64_t ExFatFile::fileSize </td>
  551. <td>(</td>
  552. <td class="paramname"></td><td>)</td>
  553. <td></td>
  554. </tr>
  555. </table>
  556. </td>
  557. <td class="mlabels-right">
  558. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  559. </tr>
  560. </table>
  561. </div><div class="memdoc">
  562. <dl class="section return"><dt>Returns</dt><dd>The total number of bytes in a file. </dd></dl>
  563. </div>
  564. </div>
  565. <a id="ab16f38103a13394bffd8aa5be830c4fe"></a>
  566. <h2 class="memtitle"><span class="permalink"><a href="#ab16f38103a13394bffd8aa5be830c4fe">&#9670;&nbsp;</a></span>flush()</h2>
  567. <div class="memitem">
  568. <div class="memproto">
  569. <table class="mlabels">
  570. <tr>
  571. <td class="mlabels-left">
  572. <table class="memname">
  573. <tr>
  574. <td class="memname">void ExFatFile::flush </td>
  575. <td>(</td>
  576. <td class="paramname"></td><td>)</td>
  577. <td></td>
  578. </tr>
  579. </table>
  580. </td>
  581. <td class="mlabels-right">
  582. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  583. </tr>
  584. </table>
  585. </div><div class="memdoc">
  586. <p>Arduino name for <a class="el" href="class_ex_fat_file.html#a2cb3638069afd2d01b79e5dff1a66f55">sync()</a> </p>
  587. </div>
  588. </div>
  589. <a id="aea1e4d0c0981081774dc3c7cd3c55264"></a>
  590. <h2 class="memtitle"><span class="permalink"><a href="#aea1e4d0c0981081774dc3c7cd3c55264">&#9670;&nbsp;</a></span>fsetpos()</h2>
  591. <div class="memitem">
  592. <div class="memproto">
  593. <table class="memname">
  594. <tr>
  595. <td class="memname">void ExFatFile::fsetpos </td>
  596. <td>(</td>
  597. <td class="paramtype">const fspos_t *&#160;</td>
  598. <td class="paramname"><em>pos</em></td><td>)</td>
  599. <td></td>
  600. </tr>
  601. </table>
  602. </div><div class="memdoc">
  603. <p>set position for streams </p><dl class="params"><dt>Parameters</dt><dd>
  604. <table class="params">
  605. <tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>struct with value for new position </td></tr>
  606. </table>
  607. </dd>
  608. </dl>
  609. </div>
  610. </div>
  611. <a id="ac697224450ca216c60585d25f5f6e310"></a>
  612. <h2 class="memtitle"><span class="permalink"><a href="#ac697224450ca216c60585d25f5f6e310">&#9670;&nbsp;</a></span>getError()</h2>
  613. <div class="memitem">
  614. <div class="memproto">
  615. <table class="mlabels">
  616. <tr>
  617. <td class="mlabels-left">
  618. <table class="memname">
  619. <tr>
  620. <td class="memname">uint8_t ExFatFile::getError </td>
  621. <td>(</td>
  622. <td class="paramname"></td><td>)</td>
  623. <td></td>
  624. </tr>
  625. </table>
  626. </td>
  627. <td class="mlabels-right">
  628. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  629. </tr>
  630. </table>
  631. </div><div class="memdoc">
  632. <dl class="section return"><dt>Returns</dt><dd>All error bits. </dd></dl>
  633. </div>
  634. </div>
  635. <a id="aba93e2c18be9fa4df7e067b7d6ac5906"></a>
  636. <h2 class="memtitle"><span class="permalink"><a href="#aba93e2c18be9fa4df7e067b7d6ac5906">&#9670;&nbsp;</a></span>getName()</h2>
  637. <div class="memitem">
  638. <div class="memproto">
  639. <table class="memname">
  640. <tr>
  641. <td class="memname">size_t ExFatFile::getName </td>
  642. <td>(</td>
  643. <td class="paramtype">ExChar_t *&#160;</td>
  644. <td class="paramname"><em>name</em>, </td>
  645. </tr>
  646. <tr>
  647. <td class="paramkey"></td>
  648. <td></td>
  649. <td class="paramtype">size_t&#160;</td>
  650. <td class="paramname"><em>size</em>&#160;</td>
  651. </tr>
  652. <tr>
  653. <td></td>
  654. <td>)</td>
  655. <td></td><td></td>
  656. </tr>
  657. </table>
  658. </div><div class="memdoc">
  659. <p>Get a file's name followed by a zero byte.</p>
  660. <dl class="params"><dt>Parameters</dt><dd>
  661. <table class="params">
  662. <tr><td class="paramdir">[out]</td><td class="paramname">name</td><td>An array of characters for the file's name. </td></tr>
  663. <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>The size of the array in characters. </td></tr>
  664. </table>
  665. </dd>
  666. </dl>
  667. <dl class="section return"><dt>Returns</dt><dd>the name length. </dd></dl>
  668. </div>
  669. </div>
  670. <a id="a01da9896a59671a61f90dd20c3ac5d07"></a>
  671. <h2 class="memtitle"><span class="permalink"><a href="#a01da9896a59671a61f90dd20c3ac5d07">&#9670;&nbsp;</a></span>getWriteError()</h2>
  672. <div class="memitem">
  673. <div class="memproto">
  674. <table class="mlabels">
  675. <tr>
  676. <td class="mlabels-left">
  677. <table class="memname">
  678. <tr>
  679. <td class="memname">bool ExFatFile::getWriteError </td>
  680. <td>(</td>
  681. <td class="paramname"></td><td>)</td>
  682. <td></td>
  683. </tr>
  684. </table>
  685. </td>
  686. <td class="mlabels-right">
  687. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  688. </tr>
  689. </table>
  690. </div><div class="memdoc">
  691. <dl class="section return"><dt>Returns</dt><dd>value of writeError </dd></dl>
  692. </div>
  693. </div>
  694. <a id="a7a167102bd47b7cf91167b69f8cc57d1"></a>
  695. <h2 class="memtitle"><span class="permalink"><a href="#a7a167102bd47b7cf91167b69f8cc57d1">&#9670;&nbsp;</a></span>isContiguous()</h2>
  696. <div class="memitem">
  697. <div class="memproto">
  698. <table class="mlabels">
  699. <tr>
  700. <td class="mlabels-left">
  701. <table class="memname">
  702. <tr>
  703. <td class="memname">bool ExFatFile::isContiguous </td>
  704. <td>(</td>
  705. <td class="paramname"></td><td>)</td>
  706. <td> const</td>
  707. </tr>
  708. </table>
  709. </td>
  710. <td class="mlabels-right">
  711. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  712. </tr>
  713. </table>
  714. </div><div class="memdoc">
  715. <dl class="section return"><dt>Returns</dt><dd>True if the file is contiguous. </dd></dl>
  716. </div>
  717. </div>
  718. <a id="ad0a3687bd95bed5b216651335e66b500"></a>
  719. <h2 class="memtitle"><span class="permalink"><a href="#ad0a3687bd95bed5b216651335e66b500">&#9670;&nbsp;</a></span>isDir()</h2>
  720. <div class="memitem">
  721. <div class="memproto">
  722. <table class="mlabels">
  723. <tr>
  724. <td class="mlabels-left">
  725. <table class="memname">
  726. <tr>
  727. <td class="memname">bool ExFatFile::isDir </td>
  728. <td>(</td>
  729. <td class="paramname"></td><td>)</td>
  730. <td> const</td>
  731. </tr>
  732. </table>
  733. </td>
  734. <td class="mlabels-right">
  735. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  736. </tr>
  737. </table>
  738. </div><div class="memdoc">
  739. <dl class="section return"><dt>Returns</dt><dd>True if this is a directory. </dd></dl>
  740. </div>
  741. </div>
  742. <a id="af601285f95db8398c140b3927cf9111c"></a>
  743. <h2 class="memtitle"><span class="permalink"><a href="#af601285f95db8398c140b3927cf9111c">&#9670;&nbsp;</a></span>isFile()</h2>
  744. <div class="memitem">
  745. <div class="memproto">
  746. <table class="mlabels">
  747. <tr>
  748. <td class="mlabels-left">
  749. <table class="memname">
  750. <tr>
  751. <td class="memname">bool ExFatFile::isFile </td>
  752. <td>(</td>
  753. <td class="paramname"></td><td>)</td>
  754. <td> const</td>
  755. </tr>
  756. </table>
  757. </td>
  758. <td class="mlabels-right">
  759. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  760. </tr>
  761. </table>
  762. </div><div class="memdoc">
  763. <dl class="section return"><dt>Returns</dt><dd>True if this is a normal file. </dd></dl>
  764. </div>
  765. </div>
  766. <a id="ac926285fa4321ebee28fa91beb511eae"></a>
  767. <h2 class="memtitle"><span class="permalink"><a href="#ac926285fa4321ebee28fa91beb511eae">&#9670;&nbsp;</a></span>isHidden()</h2>
  768. <div class="memitem">
  769. <div class="memproto">
  770. <table class="mlabels">
  771. <tr>
  772. <td class="mlabels-left">
  773. <table class="memname">
  774. <tr>
  775. <td class="memname">bool ExFatFile::isHidden </td>
  776. <td>(</td>
  777. <td class="paramname"></td><td>)</td>
  778. <td> const</td>
  779. </tr>
  780. </table>
  781. </td>
  782. <td class="mlabels-right">
  783. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  784. </tr>
  785. </table>
  786. </div><div class="memdoc">
  787. <dl class="section return"><dt>Returns</dt><dd>True if this is a hidden. </dd></dl>
  788. </div>
  789. </div>
  790. <a id="a804c34bbe3ebefe2b6c1d77ff8d49a35"></a>
  791. <h2 class="memtitle"><span class="permalink"><a href="#a804c34bbe3ebefe2b6c1d77ff8d49a35">&#9670;&nbsp;</a></span>isOpen()</h2>
  792. <div class="memitem">
  793. <div class="memproto">
  794. <table class="mlabels">
  795. <tr>
  796. <td class="mlabels-left">
  797. <table class="memname">
  798. <tr>
  799. <td class="memname">bool ExFatFile::isOpen </td>
  800. <td>(</td>
  801. <td class="paramname"></td><td>)</td>
  802. <td> const</td>
  803. </tr>
  804. </table>
  805. </td>
  806. <td class="mlabels-right">
  807. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  808. </tr>
  809. </table>
  810. </div><div class="memdoc">
  811. <dl class="section return"><dt>Returns</dt><dd>true if the file is open. </dd></dl>
  812. </div>
  813. </div>
  814. <a id="a9ca137dfba2c7772910f4d2b3fdd9411"></a>
  815. <h2 class="memtitle"><span class="permalink"><a href="#a9ca137dfba2c7772910f4d2b3fdd9411">&#9670;&nbsp;</a></span>isReadable()</h2>
  816. <div class="memitem">
  817. <div class="memproto">
  818. <table class="mlabels">
  819. <tr>
  820. <td class="mlabels-left">
  821. <table class="memname">
  822. <tr>
  823. <td class="memname">bool ExFatFile::isReadable </td>
  824. <td>(</td>
  825. <td class="paramname"></td><td>)</td>
  826. <td> const</td>
  827. </tr>
  828. </table>
  829. </td>
  830. <td class="mlabels-right">
  831. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  832. </tr>
  833. </table>
  834. </div><div class="memdoc">
  835. <dl class="section return"><dt>Returns</dt><dd>True file is writable. </dd></dl>
  836. </div>
  837. </div>
  838. <a id="a14d160bfbfb39717746b93fa2eda5739"></a>
  839. <h2 class="memtitle"><span class="permalink"><a href="#a14d160bfbfb39717746b93fa2eda5739">&#9670;&nbsp;</a></span>isReadOnly()</h2>
  840. <div class="memitem">
  841. <div class="memproto">
  842. <table class="mlabels">
  843. <tr>
  844. <td class="mlabels-left">
  845. <table class="memname">
  846. <tr>
  847. <td class="memname">bool ExFatFile::isReadOnly </td>
  848. <td>(</td>
  849. <td class="paramname"></td><td>)</td>
  850. <td> const</td>
  851. </tr>
  852. </table>
  853. </td>
  854. <td class="mlabels-right">
  855. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  856. </tr>
  857. </table>
  858. </div><div class="memdoc">
  859. <dl class="section return"><dt>Returns</dt><dd>True if file is read-only </dd></dl>
  860. </div>
  861. </div>
  862. <a id="ad9f8e7afcf749ebcaaf055bd569dc7da"></a>
  863. <h2 class="memtitle"><span class="permalink"><a href="#ad9f8e7afcf749ebcaaf055bd569dc7da">&#9670;&nbsp;</a></span>isRoot()</h2>
  864. <div class="memitem">
  865. <div class="memproto">
  866. <table class="mlabels">
  867. <tr>
  868. <td class="mlabels-left">
  869. <table class="memname">
  870. <tr>
  871. <td class="memname">bool ExFatFile::isRoot </td>
  872. <td>(</td>
  873. <td class="paramname"></td><td>)</td>
  874. <td> const</td>
  875. </tr>
  876. </table>
  877. </td>
  878. <td class="mlabels-right">
  879. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  880. </tr>
  881. </table>
  882. </div><div class="memdoc">
  883. <dl class="section return"><dt>Returns</dt><dd>True if this is the root directory. </dd></dl>
  884. </div>
  885. </div>
  886. <a id="ad7e02a1db8fb5a90288bb4679e9ddcb9"></a>
  887. <h2 class="memtitle"><span class="permalink"><a href="#ad7e02a1db8fb5a90288bb4679e9ddcb9">&#9670;&nbsp;</a></span>isSubDir()</h2>
  888. <div class="memitem">
  889. <div class="memproto">
  890. <table class="mlabels">
  891. <tr>
  892. <td class="mlabels-left">
  893. <table class="memname">
  894. <tr>
  895. <td class="memname">bool ExFatFile::isSubDir </td>
  896. <td>(</td>
  897. <td class="paramname"></td><td>)</td>
  898. <td> const</td>
  899. </tr>
  900. </table>
  901. </td>
  902. <td class="mlabels-right">
  903. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  904. </tr>
  905. </table>
  906. </div><div class="memdoc">
  907. <dl class="section return"><dt>Returns</dt><dd>True if this is a subdirectory. </dd></dl>
  908. </div>
  909. </div>
  910. <a id="a04d1c43e80743f8c1a51b64062ce16dd"></a>
  911. <h2 class="memtitle"><span class="permalink"><a href="#a04d1c43e80743f8c1a51b64062ce16dd">&#9670;&nbsp;</a></span>isWritable()</h2>
  912. <div class="memitem">
  913. <div class="memproto">
  914. <table class="mlabels">
  915. <tr>
  916. <td class="mlabels-left">
  917. <table class="memname">
  918. <tr>
  919. <td class="memname">bool ExFatFile::isWritable </td>
  920. <td>(</td>
  921. <td class="paramname"></td><td>)</td>
  922. <td> const</td>
  923. </tr>
  924. </table>
  925. </td>
  926. <td class="mlabels-right">
  927. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  928. </tr>
  929. </table>
  930. </div><div class="memdoc">
  931. <dl class="section return"><dt>Returns</dt><dd>True file is writable. </dd></dl>
  932. </div>
  933. </div>
  934. <a id="aa0e074c891f3db5ea2ebd491667b03a6"></a>
  935. <h2 class="memtitle"><span class="permalink"><a href="#aa0e074c891f3db5ea2ebd491667b03a6">&#9670;&nbsp;</a></span>ls() <span class="overload">[1/2]</span></h2>
  936. <div class="memitem">
  937. <div class="memproto">
  938. <table class="memname">
  939. <tr>
  940. <td class="memname">bool ExFatFile::ls </td>
  941. <td>(</td>
  942. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  943. <td class="paramname"><em>pr</em></td><td>)</td>
  944. <td></td>
  945. </tr>
  946. </table>
  947. </div><div class="memdoc">
  948. <p>List directory contents.</p>
  949. <dl class="params"><dt>Parameters</dt><dd>
  950. <table class="params">
  951. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for list. </td></tr>
  952. </table>
  953. </dd>
  954. </dl>
  955. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  956. </div>
  957. </div>
  958. <a id="a09f8beb55f939874e93c1df6c8a046d4"></a>
  959. <h2 class="memtitle"><span class="permalink"><a href="#a09f8beb55f939874e93c1df6c8a046d4">&#9670;&nbsp;</a></span>ls() <span class="overload">[2/2]</span></h2>
  960. <div class="memitem">
  961. <div class="memproto">
  962. <table class="memname">
  963. <tr>
  964. <td class="memname">bool ExFatFile::ls </td>
  965. <td>(</td>
  966. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  967. <td class="paramname"><em>pr</em>, </td>
  968. </tr>
  969. <tr>
  970. <td class="paramkey"></td>
  971. <td></td>
  972. <td class="paramtype">uint8_t&#160;</td>
  973. <td class="paramname"><em>flags</em>, </td>
  974. </tr>
  975. <tr>
  976. <td class="paramkey"></td>
  977. <td></td>
  978. <td class="paramtype">uint8_t&#160;</td>
  979. <td class="paramname"><em>indent</em> = <code>0</code>&#160;</td>
  980. </tr>
  981. <tr>
  982. <td></td>
  983. <td>)</td>
  984. <td></td><td></td>
  985. </tr>
  986. </table>
  987. </div><div class="memdoc">
  988. <p>List directory contents.</p>
  989. <dl class="params"><dt>Parameters</dt><dd>
  990. <table class="params">
  991. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for list.</td></tr>
  992. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The inclusive OR of</td></tr>
  993. </table>
  994. </dd>
  995. </dl>
  996. <p>LS_DATE - Print file modification date</p>
  997. <p>LS_SIZE - Print file size.</p>
  998. <p>LS_R - Recursive list of subdirectories.</p>
  999. <dl class="params"><dt>Parameters</dt><dd>
  1000. <table class="params">
  1001. <tr><td class="paramdir">[in]</td><td class="paramname">indent</td><td>Amount of space before file name. Used for recursive list to indicate subdirectory level.</td></tr>
  1002. </table>
  1003. </dd>
  1004. </dl>
  1005. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1006. </div>
  1007. </div>
  1008. <a id="a3a393624d52854e74bf385c9e513a86d"></a>
  1009. <h2 class="memtitle"><span class="permalink"><a href="#a3a393624d52854e74bf385c9e513a86d">&#9670;&nbsp;</a></span>mkdir()</h2>
  1010. <div class="memitem">
  1011. <div class="memproto">
  1012. <table class="memname">
  1013. <tr>
  1014. <td class="memname">bool ExFatFile::mkdir </td>
  1015. <td>(</td>
  1016. <td class="paramtype"><a class="el" href="class_ex_fat_file.html">ExFatFile</a> *&#160;</td>
  1017. <td class="paramname"><em>parent</em>, </td>
  1018. </tr>
  1019. <tr>
  1020. <td class="paramkey"></td>
  1021. <td></td>
  1022. <td class="paramtype">const ExChar_t *&#160;</td>
  1023. <td class="paramname"><em>path</em>, </td>
  1024. </tr>
  1025. <tr>
  1026. <td class="paramkey"></td>
  1027. <td></td>
  1028. <td class="paramtype">bool&#160;</td>
  1029. <td class="paramname"><em>pFlag</em> = <code>true</code>&#160;</td>
  1030. </tr>
  1031. <tr>
  1032. <td></td>
  1033. <td>)</td>
  1034. <td></td><td></td>
  1035. </tr>
  1036. </table>
  1037. </div><div class="memdoc">
  1038. <p>Make a new directory.</p>
  1039. <dl class="params"><dt>Parameters</dt><dd>
  1040. <table class="params">
  1041. <tr><td class="paramdir">[in]</td><td class="paramname">parent</td><td>An open directory file that will contain the new directory.</td></tr>
  1042. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid name for the new directory.</td></tr>
  1043. <tr><td class="paramdir">[in]</td><td class="paramname">pFlag</td><td>Create missing parent directories if true.</td></tr>
  1044. </table>
  1045. </dd>
  1046. </dl>
  1047. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1048. </div>
  1049. </div>
  1050. <a id="ad0be05c5c7092317089872778052cbd7"></a>
  1051. <h2 class="memtitle"><span class="permalink"><a href="#ad0be05c5c7092317089872778052cbd7">&#9670;&nbsp;</a></span>open() <span class="overload">[1/4]</span></h2>
  1052. <div class="memitem">
  1053. <div class="memproto">
  1054. <table class="memname">
  1055. <tr>
  1056. <td class="memname">bool ExFatFile::open </td>
  1057. <td>(</td>
  1058. <td class="paramtype"><a class="el" href="class_ex_fat_file.html">ExFatFile</a> *&#160;</td>
  1059. <td class="paramname"><em>dirFile</em>, </td>
  1060. </tr>
  1061. <tr>
  1062. <td class="paramkey"></td>
  1063. <td></td>
  1064. <td class="paramtype">const ExChar_t *&#160;</td>
  1065. <td class="paramname"><em>path</em>, </td>
  1066. </tr>
  1067. <tr>
  1068. <td class="paramkey"></td>
  1069. <td></td>
  1070. <td class="paramtype">oflag_t&#160;</td>
  1071. <td class="paramname"><em>oflag</em>&#160;</td>
  1072. </tr>
  1073. <tr>
  1074. <td></td>
  1075. <td>)</td>
  1076. <td></td><td></td>
  1077. </tr>
  1078. </table>
  1079. </div><div class="memdoc">
  1080. <p>Open a file or directory by name.</p>
  1081. <dl class="params"><dt>Parameters</dt><dd>
  1082. <table class="params">
  1083. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>An open directory containing the file to be opened.</td></tr>
  1084. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>The path for a file to be opened.</td></tr>
  1085. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>Values for <em>oflag</em> are constructed by a bitwise-inclusive OR of flags from the following list. Only one of O_RDONLY, O_READ, O_WRONLY, O_WRITE, or O_RDWR is allowed.</td></tr>
  1086. </table>
  1087. </dd>
  1088. </dl>
  1089. <p>O_RDONLY - Open for reading.</p>
  1090. <p>O_READ - Same as O_RDONLY.</p>
  1091. <p>O_WRONLY - Open for writing.</p>
  1092. <p>O_WRITE - Same as O_WRONLY.</p>
  1093. <p>O_RDWR - Open for reading and writing.</p>
  1094. <p>O_APPEND - If set, the file offset shall be set to the end of the file prior to each write.</p>
  1095. <p>O_AT_END - Set the initial position at the end of the file.</p>
  1096. <p>O_CREAT - If the file exists, this flag has no effect except as noted under O_EXCL below. Otherwise, the file shall be created</p>
  1097. <p>O_EXCL - If O_CREAT and O_EXCL are set, <a class="el" href="class_ex_fat_file.html#ad0be05c5c7092317089872778052cbd7">open()</a> shall fail if the file exists.</p>
  1098. <p>O_TRUNC - If the file exists and is a regular file, and the file is successfully opened and is not read only, its length shall be truncated to 0.</p>
  1099. <p>WARNING: A given file must not be opened by more than one file object or file corruption may occur.</p>
  1100. <dl class="section note"><dt>Note</dt><dd>Directory files must be opened read only. Write and truncation is not allowed for directory files.</dd></dl>
  1101. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1102. </div>
  1103. </div>
  1104. <a id="a825447643e6c9e8284a3ed78e3363788"></a>
  1105. <h2 class="memtitle"><span class="permalink"><a href="#a825447643e6c9e8284a3ed78e3363788">&#9670;&nbsp;</a></span>open() <span class="overload">[2/4]</span></h2>
  1106. <div class="memitem">
  1107. <div class="memproto">
  1108. <table class="memname">
  1109. <tr>
  1110. <td class="memname">bool ExFatFile::open </td>
  1111. <td>(</td>
  1112. <td class="paramtype"><a class="el" href="class_ex_fat_volume.html">ExFatVolume</a> *&#160;</td>
  1113. <td class="paramname"><em>vol</em>, </td>
  1114. </tr>
  1115. <tr>
  1116. <td class="paramkey"></td>
  1117. <td></td>
  1118. <td class="paramtype">const ExChar_t *&#160;</td>
  1119. <td class="paramname"><em>path</em>, </td>
  1120. </tr>
  1121. <tr>
  1122. <td class="paramkey"></td>
  1123. <td></td>
  1124. <td class="paramtype">int&#160;</td>
  1125. <td class="paramname"><em>oflag</em>&#160;</td>
  1126. </tr>
  1127. <tr>
  1128. <td></td>
  1129. <td>)</td>
  1130. <td></td><td></td>
  1131. </tr>
  1132. </table>
  1133. </div><div class="memdoc">
  1134. <p>Open a file in the volume working directory.</p>
  1135. <dl class="params"><dt>Parameters</dt><dd>
  1136. <table class="params">
  1137. <tr><td class="paramdir">[in]</td><td class="paramname">vol</td><td>Volume where the file is located.</td></tr>
  1138. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>with a valid name for a file to be opened.</td></tr>
  1139. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>bitwise-inclusive OR of open flags. See see <a class="el" href="class_ex_fat_file.html#ad0be05c5c7092317089872778052cbd7">open(ExFatFile*, const char*, uint8_t)</a>.</td></tr>
  1140. </table>
  1141. </dd>
  1142. </dl>
  1143. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1144. </div>
  1145. </div>
  1146. <a id="a414b64dc30551e05dcc46f04e0f6413a"></a>
  1147. <h2 class="memtitle"><span class="permalink"><a href="#a414b64dc30551e05dcc46f04e0f6413a">&#9670;&nbsp;</a></span>open() <span class="overload">[3/4]</span></h2>
  1148. <div class="memitem">
  1149. <div class="memproto">
  1150. <table class="memname">
  1151. <tr>
  1152. <td class="memname">bool ExFatFile::open </td>
  1153. <td>(</td>
  1154. <td class="paramtype"><a class="el" href="class_ex_fat_file.html">ExFatFile</a> *&#160;</td>
  1155. <td class="paramname"><em>dirFile</em>, </td>
  1156. </tr>
  1157. <tr>
  1158. <td class="paramkey"></td>
  1159. <td></td>
  1160. <td class="paramtype">uint32_t&#160;</td>
  1161. <td class="paramname"><em>index</em>, </td>
  1162. </tr>
  1163. <tr>
  1164. <td class="paramkey"></td>
  1165. <td></td>
  1166. <td class="paramtype">oflag_t&#160;</td>
  1167. <td class="paramname"><em>oflag</em>&#160;</td>
  1168. </tr>
  1169. <tr>
  1170. <td></td>
  1171. <td>)</td>
  1172. <td></td><td></td>
  1173. </tr>
  1174. </table>
  1175. </div><div class="memdoc">
  1176. <p>Open a file by index.</p>
  1177. <dl class="params"><dt>Parameters</dt><dd>
  1178. <table class="params">
  1179. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>An open <a class="el" href="class_ex_fat_file.html" title="Basic file class. ">ExFatFile</a> instance for the directory.</td></tr>
  1180. <tr><td class="paramdir">[in]</td><td class="paramname">index</td><td>The <em>index</em> of the directory entry for the file to be opened. The value for <em>index</em> is (directory file position)/32.</td></tr>
  1181. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>bitwise-inclusive OR of open flags. See see <a class="el" href="class_ex_fat_file.html#ad0be05c5c7092317089872778052cbd7">ExFatFile::open(ExFatFile*, const ExChar_t*, uint8_t)</a>.</td></tr>
  1182. </table>
  1183. </dd>
  1184. </dl>
  1185. <p>See <a class="el" href="class_ex_fat_file.html#ad0be05c5c7092317089872778052cbd7">open()</a> by path for definition of flags. </p><dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1186. </div>
  1187. </div>
  1188. <a id="ab1e224aba9eb796c7ad48062cc1434c2"></a>
  1189. <h2 class="memtitle"><span class="permalink"><a href="#ab1e224aba9eb796c7ad48062cc1434c2">&#9670;&nbsp;</a></span>open() <span class="overload">[4/4]</span></h2>
  1190. <div class="memitem">
  1191. <div class="memproto">
  1192. <table class="memname">
  1193. <tr>
  1194. <td class="memname">bool ExFatFile::open </td>
  1195. <td>(</td>
  1196. <td class="paramtype">const ExChar_t *&#160;</td>
  1197. <td class="paramname"><em>path</em>, </td>
  1198. </tr>
  1199. <tr>
  1200. <td class="paramkey"></td>
  1201. <td></td>
  1202. <td class="paramtype">int&#160;</td>
  1203. <td class="paramname"><em>oflag</em> = <code>0X00</code>&#160;</td>
  1204. </tr>
  1205. <tr>
  1206. <td></td>
  1207. <td>)</td>
  1208. <td></td><td></td>
  1209. </tr>
  1210. </table>
  1211. </div><div class="memdoc">
  1212. <p>Open a file in the current working directory.</p>
  1213. <dl class="params"><dt>Parameters</dt><dd>
  1214. <table class="params">
  1215. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid name for a file to be opened.</td></tr>
  1216. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>bitwise-inclusive OR of open flags. See see <a class="el" href="class_ex_fat_file.html#ad0be05c5c7092317089872778052cbd7">ExFatFile::open(ExFatFile*, const char*, uint8_t)</a>.</td></tr>
  1217. </table>
  1218. </dd>
  1219. </dl>
  1220. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1221. </div>
  1222. </div>
  1223. <a id="a89b6021cf70b7adb9feb162260d5a101"></a>
  1224. <h2 class="memtitle"><span class="permalink"><a href="#a89b6021cf70b7adb9feb162260d5a101">&#9670;&nbsp;</a></span>openNext()</h2>
  1225. <div class="memitem">
  1226. <div class="memproto">
  1227. <table class="memname">
  1228. <tr>
  1229. <td class="memname">bool ExFatFile::openNext </td>
  1230. <td>(</td>
  1231. <td class="paramtype"><a class="el" href="class_ex_fat_file.html">ExFatFile</a> *&#160;</td>
  1232. <td class="paramname"><em>dirFile</em>, </td>
  1233. </tr>
  1234. <tr>
  1235. <td class="paramkey"></td>
  1236. <td></td>
  1237. <td class="paramtype">oflag_t&#160;</td>
  1238. <td class="paramname"><em>oflag</em> = <code>0X00</code>&#160;</td>
  1239. </tr>
  1240. <tr>
  1241. <td></td>
  1242. <td>)</td>
  1243. <td></td><td></td>
  1244. </tr>
  1245. </table>
  1246. </div><div class="memdoc">
  1247. <p>Open the next file or subdirectory in a directory.</p>
  1248. <dl class="params"><dt>Parameters</dt><dd>
  1249. <table class="params">
  1250. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>An open instance for the directory containing the file to be opened.</td></tr>
  1251. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>bitwise-inclusive OR of open flags. See see <a class="el" href="class_ex_fat_file.html#ad0be05c5c7092317089872778052cbd7">open(ExFatFile*, const char*, uint8_t)</a>.</td></tr>
  1252. </table>
  1253. </dd>
  1254. </dl>
  1255. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1256. </div>
  1257. </div>
  1258. <a id="af664c1da1bfa0bb5f6eb933bc25f757e"></a>
  1259. <h2 class="memtitle"><span class="permalink"><a href="#af664c1da1bfa0bb5f6eb933bc25f757e">&#9670;&nbsp;</a></span>openRoot()</h2>
  1260. <div class="memitem">
  1261. <div class="memproto">
  1262. <table class="memname">
  1263. <tr>
  1264. <td class="memname">bool ExFatFile::openRoot </td>
  1265. <td>(</td>
  1266. <td class="paramtype"><a class="el" href="class_ex_fat_volume.html">ExFatVolume</a> *&#160;</td>
  1267. <td class="paramname"><em>vol</em></td><td>)</td>
  1268. <td></td>
  1269. </tr>
  1270. </table>
  1271. </div><div class="memdoc">
  1272. <p>Open a volume's root directory.</p>
  1273. <dl class="params"><dt>Parameters</dt><dd>
  1274. <table class="params">
  1275. <tr><td class="paramdir">[in]</td><td class="paramname">vol</td><td>The FAT volume containing the root directory to be opened.</td></tr>
  1276. </table>
  1277. </dd>
  1278. </dl>
  1279. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1280. </div>
  1281. </div>
  1282. <a id="aa1abbd813f27d488f0ff439ccbc9ca98"></a>
  1283. <h2 class="memtitle"><span class="permalink"><a href="#aa1abbd813f27d488f0ff439ccbc9ca98">&#9670;&nbsp;</a></span>operator bool()</h2>
  1284. <div class="memitem">
  1285. <div class="memproto">
  1286. <table class="mlabels">
  1287. <tr>
  1288. <td class="mlabels-left">
  1289. <table class="memname">
  1290. <tr>
  1291. <td class="memname">ExFatFile::operator bool </td>
  1292. <td>(</td>
  1293. <td class="paramname"></td><td>)</td>
  1294. <td></td>
  1295. </tr>
  1296. </table>
  1297. </td>
  1298. <td class="mlabels-right">
  1299. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1300. </tr>
  1301. </table>
  1302. </div><div class="memdoc">
  1303. <p>The parenthesis operator.</p>
  1304. <dl class="section return"><dt>Returns</dt><dd>true if a file is open. </dd></dl>
  1305. </div>
  1306. </div>
  1307. <a id="afc2e375faa696545f7ebbf583faae72a"></a>
  1308. <h2 class="memtitle"><span class="permalink"><a href="#afc2e375faa696545f7ebbf583faae72a">&#9670;&nbsp;</a></span>peek()</h2>
  1309. <div class="memitem">
  1310. <div class="memproto">
  1311. <table class="memname">
  1312. <tr>
  1313. <td class="memname">int ExFatFile::peek </td>
  1314. <td>(</td>
  1315. <td class="paramname"></td><td>)</td>
  1316. <td></td>
  1317. </tr>
  1318. </table>
  1319. </div><div class="memdoc">
  1320. <p>Return the next available byte without consuming it.</p>
  1321. <dl class="section return"><dt>Returns</dt><dd>The byte if no error and not at eof else -1; </dd></dl>
  1322. </div>
  1323. </div>
  1324. <a id="a35a5093014e80965e49c84b61780556f"></a>
  1325. <h2 class="memtitle"><span class="permalink"><a href="#a35a5093014e80965e49c84b61780556f">&#9670;&nbsp;</a></span>preAllocate()</h2>
  1326. <div class="memitem">
  1327. <div class="memproto">
  1328. <table class="memname">
  1329. <tr>
  1330. <td class="memname">bool ExFatFile::preAllocate </td>
  1331. <td>(</td>
  1332. <td class="paramtype">uint64_t&#160;</td>
  1333. <td class="paramname"><em>length</em></td><td>)</td>
  1334. <td></td>
  1335. </tr>
  1336. </table>
  1337. </div><div class="memdoc">
  1338. <p>Allocate contiguous clusters to an empty file.</p>
  1339. <p>The file must be empty with no clusters allocated.</p>
  1340. <p>The file will have zero validLength and dataLength will equal the requested length.</p>
  1341. <dl class="params"><dt>Parameters</dt><dd>
  1342. <table class="params">
  1343. <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>size of allocated space in bytes. </td></tr>
  1344. </table>
  1345. </dd>
  1346. </dl>
  1347. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1348. </div>
  1349. </div>
  1350. <a id="ad9ba8aa00b9db683d40fc2989dbe1922"></a>
  1351. <h2 class="memtitle"><span class="permalink"><a href="#ad9ba8aa00b9db683d40fc2989dbe1922">&#9670;&nbsp;</a></span>printAccessDateTime()</h2>
  1352. <div class="memitem">
  1353. <div class="memproto">
  1354. <table class="memname">
  1355. <tr>
  1356. <td class="memname">size_t ExFatFile::printAccessDateTime </td>
  1357. <td>(</td>
  1358. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  1359. <td class="paramname"><em>pr</em></td><td>)</td>
  1360. <td></td>
  1361. </tr>
  1362. </table>
  1363. </div><div class="memdoc">
  1364. <p>Print a file's access date and time</p>
  1365. <dl class="params"><dt>Parameters</dt><dd>
  1366. <table class="params">
  1367. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  1368. </table>
  1369. </dd>
  1370. </dl>
  1371. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1372. </div>
  1373. </div>
  1374. <a id="a7318b2d7594d6ba52421c413f5fc35cd"></a>
  1375. <h2 class="memtitle"><span class="permalink"><a href="#a7318b2d7594d6ba52421c413f5fc35cd">&#9670;&nbsp;</a></span>printCreateDateTime()</h2>
  1376. <div class="memitem">
  1377. <div class="memproto">
  1378. <table class="memname">
  1379. <tr>
  1380. <td class="memname">size_t ExFatFile::printCreateDateTime </td>
  1381. <td>(</td>
  1382. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  1383. <td class="paramname"><em>pr</em></td><td>)</td>
  1384. <td></td>
  1385. </tr>
  1386. </table>
  1387. </div><div class="memdoc">
  1388. <p>Print a file's creation date and time</p>
  1389. <dl class="params"><dt>Parameters</dt><dd>
  1390. <table class="params">
  1391. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  1392. </table>
  1393. </dd>
  1394. </dl>
  1395. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1396. </div>
  1397. </div>
  1398. <a id="a496ac61e367a24665425d54956a46346"></a>
  1399. <h2 class="memtitle"><span class="permalink"><a href="#a496ac61e367a24665425d54956a46346">&#9670;&nbsp;</a></span>printField() <span class="overload">[1/3]</span></h2>
  1400. <div class="memitem">
  1401. <div class="memproto">
  1402. <table class="mlabels">
  1403. <tr>
  1404. <td class="mlabels-left">
  1405. <table class="memname">
  1406. <tr>
  1407. <td class="memname">size_t ExFatFile::printField </td>
  1408. <td>(</td>
  1409. <td class="paramtype">double&#160;</td>
  1410. <td class="paramname"><em>value</em>, </td>
  1411. </tr>
  1412. <tr>
  1413. <td class="paramkey"></td>
  1414. <td></td>
  1415. <td class="paramtype">char&#160;</td>
  1416. <td class="paramname"><em>term</em>, </td>
  1417. </tr>
  1418. <tr>
  1419. <td class="paramkey"></td>
  1420. <td></td>
  1421. <td class="paramtype">uint8_t&#160;</td>
  1422. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  1423. </tr>
  1424. <tr>
  1425. <td></td>
  1426. <td>)</td>
  1427. <td></td><td></td>
  1428. </tr>
  1429. </table>
  1430. </td>
  1431. <td class="mlabels-right">
  1432. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1433. </tr>
  1434. </table>
  1435. </div><div class="memdoc">
  1436. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  1437. <table class="params">
  1438. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1439. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  1440. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  1441. </table>
  1442. </dd>
  1443. </dl>
  1444. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1445. </div>
  1446. </div>
  1447. <a id="a70eda4191df90f608694c1faede7fb33"></a>
  1448. <h2 class="memtitle"><span class="permalink"><a href="#a70eda4191df90f608694c1faede7fb33">&#9670;&nbsp;</a></span>printField() <span class="overload">[2/3]</span></h2>
  1449. <div class="memitem">
  1450. <div class="memproto">
  1451. <table class="mlabels">
  1452. <tr>
  1453. <td class="mlabels-left">
  1454. <table class="memname">
  1455. <tr>
  1456. <td class="memname">size_t ExFatFile::printField </td>
  1457. <td>(</td>
  1458. <td class="paramtype">float&#160;</td>
  1459. <td class="paramname"><em>value</em>, </td>
  1460. </tr>
  1461. <tr>
  1462. <td class="paramkey"></td>
  1463. <td></td>
  1464. <td class="paramtype">char&#160;</td>
  1465. <td class="paramname"><em>term</em>, </td>
  1466. </tr>
  1467. <tr>
  1468. <td class="paramkey"></td>
  1469. <td></td>
  1470. <td class="paramtype">uint8_t&#160;</td>
  1471. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  1472. </tr>
  1473. <tr>
  1474. <td></td>
  1475. <td>)</td>
  1476. <td></td><td></td>
  1477. </tr>
  1478. </table>
  1479. </td>
  1480. <td class="mlabels-right">
  1481. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1482. </tr>
  1483. </table>
  1484. </div><div class="memdoc">
  1485. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  1486. <table class="params">
  1487. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1488. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  1489. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  1490. </table>
  1491. </dd>
  1492. </dl>
  1493. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1494. </div>
  1495. </div>
  1496. <a id="a9759c13e804c01ff9e7e2ac8fbabc5b8"></a>
  1497. <h2 class="memtitle"><span class="permalink"><a href="#a9759c13e804c01ff9e7e2ac8fbabc5b8">&#9670;&nbsp;</a></span>printField() <span class="overload">[3/3]</span></h2>
  1498. <div class="memitem">
  1499. <div class="memproto">
  1500. <div class="memtemplate">
  1501. template&lt;typename Type &gt; </div>
  1502. <table class="mlabels">
  1503. <tr>
  1504. <td class="mlabels-left">
  1505. <table class="memname">
  1506. <tr>
  1507. <td class="memname">size_t ExFatFile::printField </td>
  1508. <td>(</td>
  1509. <td class="paramtype">Type&#160;</td>
  1510. <td class="paramname"><em>value</em>, </td>
  1511. </tr>
  1512. <tr>
  1513. <td class="paramkey"></td>
  1514. <td></td>
  1515. <td class="paramtype">char&#160;</td>
  1516. <td class="paramname"><em>term</em>&#160;</td>
  1517. </tr>
  1518. <tr>
  1519. <td></td>
  1520. <td>)</td>
  1521. <td></td><td></td>
  1522. </tr>
  1523. </table>
  1524. </td>
  1525. <td class="mlabels-right">
  1526. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1527. </tr>
  1528. </table>
  1529. </div><div class="memdoc">
  1530. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  1531. <table class="params">
  1532. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1533. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  1534. </table>
  1535. </dd>
  1536. </dl>
  1537. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1538. </div>
  1539. </div>
  1540. <a id="a16d527f98cff3ffd3ba8bc594a22d186"></a>
  1541. <h2 class="memtitle"><span class="permalink"><a href="#a16d527f98cff3ffd3ba8bc594a22d186">&#9670;&nbsp;</a></span>printFileSize()</h2>
  1542. <div class="memitem">
  1543. <div class="memproto">
  1544. <table class="memname">
  1545. <tr>
  1546. <td class="memname">size_t ExFatFile::printFileSize </td>
  1547. <td>(</td>
  1548. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  1549. <td class="paramname"><em>pr</em></td><td>)</td>
  1550. <td></td>
  1551. </tr>
  1552. </table>
  1553. </div><div class="memdoc">
  1554. <p>Print a file's size in bytes. </p><dl class="params"><dt>Parameters</dt><dd>
  1555. <table class="params">
  1556. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Prtin stream for the output. </td></tr>
  1557. </table>
  1558. </dd>
  1559. </dl>
  1560. <dl class="section return"><dt>Returns</dt><dd>The number of bytes printed. </dd></dl>
  1561. </div>
  1562. </div>
  1563. <a id="a16488d3e0d946f108240b7d6c536c6f4"></a>
  1564. <h2 class="memtitle"><span class="permalink"><a href="#a16488d3e0d946f108240b7d6c536c6f4">&#9670;&nbsp;</a></span>printModifyDateTime()</h2>
  1565. <div class="memitem">
  1566. <div class="memproto">
  1567. <table class="memname">
  1568. <tr>
  1569. <td class="memname">size_t ExFatFile::printModifyDateTime </td>
  1570. <td>(</td>
  1571. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  1572. <td class="paramname"><em>pr</em></td><td>)</td>
  1573. <td></td>
  1574. </tr>
  1575. </table>
  1576. </div><div class="memdoc">
  1577. <p>Print a file's modify date and time</p>
  1578. <dl class="params"><dt>Parameters</dt><dd>
  1579. <table class="params">
  1580. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  1581. </table>
  1582. </dd>
  1583. </dl>
  1584. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1585. </div>
  1586. </div>
  1587. <a id="a095c0a865e5e5b6463c3dc0c90680635"></a>
  1588. <h2 class="memtitle"><span class="permalink"><a href="#a095c0a865e5e5b6463c3dc0c90680635">&#9670;&nbsp;</a></span>printName()</h2>
  1589. <div class="memitem">
  1590. <div class="memproto">
  1591. <table class="memname">
  1592. <tr>
  1593. <td class="memname">size_t ExFatFile::printName </td>
  1594. <td>(</td>
  1595. <td class="paramtype"><a class="el" href="_sys_call_8h.html#ab4f210a7e2149c6c531486f1713c647b">print_t</a> *&#160;</td>
  1596. <td class="paramname"><em>pr</em></td><td>)</td>
  1597. <td></td>
  1598. </tr>
  1599. </table>
  1600. </div><div class="memdoc">
  1601. <p>Print a file's name</p>
  1602. <dl class="params"><dt>Parameters</dt><dd>
  1603. <table class="params">
  1604. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  1605. </table>
  1606. </dd>
  1607. </dl>
  1608. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1609. </div>
  1610. </div>
  1611. <a id="a77f4fea0aae0c8bae926fdfbba260a55"></a>
  1612. <h2 class="memtitle"><span class="permalink"><a href="#a77f4fea0aae0c8bae926fdfbba260a55">&#9670;&nbsp;</a></span>read() <span class="overload">[1/2]</span></h2>
  1613. <div class="memitem">
  1614. <div class="memproto">
  1615. <table class="mlabels">
  1616. <tr>
  1617. <td class="mlabels-left">
  1618. <table class="memname">
  1619. <tr>
  1620. <td class="memname">int ExFatFile::read </td>
  1621. <td>(</td>
  1622. <td class="paramname"></td><td>)</td>
  1623. <td></td>
  1624. </tr>
  1625. </table>
  1626. </td>
  1627. <td class="mlabels-right">
  1628. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1629. </tr>
  1630. </table>
  1631. </div><div class="memdoc">
  1632. <p>Read the next byte from a file.</p>
  1633. <dl class="section return"><dt>Returns</dt><dd>For success read returns the next byte in the file as an int. If an error occurs or end of file is reached -1 is returned. </dd></dl>
  1634. </div>
  1635. </div>
  1636. <a id="a5ae5477efe55179cf07e173c62654313"></a>
  1637. <h2 class="memtitle"><span class="permalink"><a href="#a5ae5477efe55179cf07e173c62654313">&#9670;&nbsp;</a></span>read() <span class="overload">[2/2]</span></h2>
  1638. <div class="memitem">
  1639. <div class="memproto">
  1640. <table class="memname">
  1641. <tr>
  1642. <td class="memname">int ExFatFile::read </td>
  1643. <td>(</td>
  1644. <td class="paramtype">void *&#160;</td>
  1645. <td class="paramname"><em>buf</em>, </td>
  1646. </tr>
  1647. <tr>
  1648. <td class="paramkey"></td>
  1649. <td></td>
  1650. <td class="paramtype">size_t&#160;</td>
  1651. <td class="paramname"><em>count</em>&#160;</td>
  1652. </tr>
  1653. <tr>
  1654. <td></td>
  1655. <td>)</td>
  1656. <td></td><td></td>
  1657. </tr>
  1658. </table>
  1659. </div><div class="memdoc">
  1660. <p>Read data from a file starting at the current position.</p>
  1661. <dl class="params"><dt>Parameters</dt><dd>
  1662. <table class="params">
  1663. <tr><td class="paramdir">[out]</td><td class="paramname">buf</td><td>Pointer to the location that will receive the data.</td></tr>
  1664. <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>Maximum number of bytes to read.</td></tr>
  1665. </table>
  1666. </dd>
  1667. </dl>
  1668. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_ex_fat_file.html#a77f4fea0aae0c8bae926fdfbba260a55">read()</a> returns the number of bytes read. A value less than <em>nbyte</em>, including zero, will be returned if end of file is reached. If an error occurs, <a class="el" href="class_ex_fat_file.html#a77f4fea0aae0c8bae926fdfbba260a55">read()</a> returns -1. </dd></dl>
  1669. </div>
  1670. </div>
  1671. <a id="a8e88c8e79551a72cc98310038514c47a"></a>
  1672. <h2 class="memtitle"><span class="permalink"><a href="#a8e88c8e79551a72cc98310038514c47a">&#9670;&nbsp;</a></span>remove() <span class="overload">[1/2]</span></h2>
  1673. <div class="memitem">
  1674. <div class="memproto">
  1675. <table class="memname">
  1676. <tr>
  1677. <td class="memname">bool ExFatFile::remove </td>
  1678. <td>(</td>
  1679. <td class="paramname"></td><td>)</td>
  1680. <td></td>
  1681. </tr>
  1682. </table>
  1683. </div><div class="memdoc">
  1684. <p>Remove a file.</p>
  1685. <p>The directory entry and all data for the file are deleted.</p>
  1686. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a file that has a long name. For example if a file has the long name "New Text Document.txt" you should not delete the 8.3 name "NEWTEX~1.TXT".</dd></dl>
  1687. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1688. </div>
  1689. </div>
  1690. <a id="ad10417a851dba3d40a78eb2c0eb11fff"></a>
  1691. <h2 class="memtitle"><span class="permalink"><a href="#ad10417a851dba3d40a78eb2c0eb11fff">&#9670;&nbsp;</a></span>remove() <span class="overload">[2/2]</span></h2>
  1692. <div class="memitem">
  1693. <div class="memproto">
  1694. <table class="memname">
  1695. <tr>
  1696. <td class="memname">bool ExFatFile::remove </td>
  1697. <td>(</td>
  1698. <td class="paramtype">const ExChar_t *&#160;</td>
  1699. <td class="paramname"><em>path</em></td><td>)</td>
  1700. <td></td>
  1701. </tr>
  1702. </table>
  1703. </div><div class="memdoc">
  1704. <p>Remove a file.</p>
  1705. <p>The directory entry and all data for the file are deleted.</p>
  1706. <dl class="params"><dt>Parameters</dt><dd>
  1707. <table class="params">
  1708. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>Path for the file to be removed.</td></tr>
  1709. </table>
  1710. </dd>
  1711. </dl>
  1712. <p>Example use: dirFile.remove(filenameToRemove);</p>
  1713. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a file that has a long name. For example if a file has the long name "New Text Document.txt" you should not delete the 8.3 name "NEWTEX~1.TXT".</dd></dl>
  1714. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1715. </div>
  1716. </div>
  1717. <a id="aab50b2646035f76834c75230d2b55c64"></a>
  1718. <h2 class="memtitle"><span class="permalink"><a href="#aab50b2646035f76834c75230d2b55c64">&#9670;&nbsp;</a></span>rename() <span class="overload">[1/2]</span></h2>
  1719. <div class="memitem">
  1720. <div class="memproto">
  1721. <table class="memname">
  1722. <tr>
  1723. <td class="memname">bool ExFatFile::rename </td>
  1724. <td>(</td>
  1725. <td class="paramtype">const ExChar_t *&#160;</td>
  1726. <td class="paramname"><em>newPath</em></td><td>)</td>
  1727. <td></td>
  1728. </tr>
  1729. </table>
  1730. </div><div class="memdoc">
  1731. <p>Rename a file or subdirectory.</p>
  1732. <dl class="params"><dt>Parameters</dt><dd>
  1733. <table class="params">
  1734. <tr><td class="paramdir">[in]</td><td class="paramname">newPath</td><td>New path name for the file/directory.</td></tr>
  1735. </table>
  1736. </dd>
  1737. </dl>
  1738. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1739. </div>
  1740. </div>
  1741. <a id="aea570a3b6afbe633d874803b137a46b8"></a>
  1742. <h2 class="memtitle"><span class="permalink"><a href="#aea570a3b6afbe633d874803b137a46b8">&#9670;&nbsp;</a></span>rename() <span class="overload">[2/2]</span></h2>
  1743. <div class="memitem">
  1744. <div class="memproto">
  1745. <table class="memname">
  1746. <tr>
  1747. <td class="memname">bool ExFatFile::rename </td>
  1748. <td>(</td>
  1749. <td class="paramtype"><a class="el" href="class_ex_fat_file.html">ExFatFile</a> *&#160;</td>
  1750. <td class="paramname"><em>dirFile</em>, </td>
  1751. </tr>
  1752. <tr>
  1753. <td class="paramkey"></td>
  1754. <td></td>
  1755. <td class="paramtype">const ExChar_t *&#160;</td>
  1756. <td class="paramname"><em>newPath</em>&#160;</td>
  1757. </tr>
  1758. <tr>
  1759. <td></td>
  1760. <td>)</td>
  1761. <td></td><td></td>
  1762. </tr>
  1763. </table>
  1764. </div><div class="memdoc">
  1765. <p>Rename a file or subdirectory.</p>
  1766. <dl class="params"><dt>Parameters</dt><dd>
  1767. <table class="params">
  1768. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>Directory for the new path. </td></tr>
  1769. <tr><td class="paramdir">[in]</td><td class="paramname">newPath</td><td>New path name for the file/directory.</td></tr>
  1770. </table>
  1771. </dd>
  1772. </dl>
  1773. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1774. </div>
  1775. </div>
  1776. <a id="a3c1d3ef65284ffb13ed3ceee472adf9a"></a>
  1777. <h2 class="memtitle"><span class="permalink"><a href="#a3c1d3ef65284ffb13ed3ceee472adf9a">&#9670;&nbsp;</a></span>rewind()</h2>
  1778. <div class="memitem">
  1779. <div class="memproto">
  1780. <table class="mlabels">
  1781. <tr>
  1782. <td class="mlabels-left">
  1783. <table class="memname">
  1784. <tr>
  1785. <td class="memname">void ExFatFile::rewind </td>
  1786. <td>(</td>
  1787. <td class="paramname"></td><td>)</td>
  1788. <td></td>
  1789. </tr>
  1790. </table>
  1791. </td>
  1792. <td class="mlabels-right">
  1793. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1794. </tr>
  1795. </table>
  1796. </div><div class="memdoc">
  1797. <p>Set the file's current position to zero. </p>
  1798. </div>
  1799. </div>
  1800. <a id="a0165e0fde12a53e419bd92cd37f9cfed"></a>
  1801. <h2 class="memtitle"><span class="permalink"><a href="#a0165e0fde12a53e419bd92cd37f9cfed">&#9670;&nbsp;</a></span>rmdir()</h2>
  1802. <div class="memitem">
  1803. <div class="memproto">
  1804. <table class="memname">
  1805. <tr>
  1806. <td class="memname">bool ExFatFile::rmdir </td>
  1807. <td>(</td>
  1808. <td class="paramname"></td><td>)</td>
  1809. <td></td>
  1810. </tr>
  1811. </table>
  1812. </div><div class="memdoc">
  1813. <p>Remove a directory file.</p>
  1814. <p>The directory file will be removed only if it is empty and is not the root directory. <a class="el" href="class_ex_fat_file.html#a0165e0fde12a53e419bd92cd37f9cfed">rmdir()</a> follows DOS and Windows and ignores the read-only attribute for the directory.</p>
  1815. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a directory that has a long name. For example if a directory has the long name "New folder" you should not delete the 8.3 name "NEWFOL~1".</dd></dl>
  1816. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1817. </div>
  1818. </div>
  1819. <a id="ab42494880cf229adfb0fc8edb0647686"></a>
  1820. <h2 class="memtitle"><span class="permalink"><a href="#ab42494880cf229adfb0fc8edb0647686">&#9670;&nbsp;</a></span>seekCur()</h2>
  1821. <div class="memitem">
  1822. <div class="memproto">
  1823. <table class="mlabels">
  1824. <tr>
  1825. <td class="mlabels-left">
  1826. <table class="memname">
  1827. <tr>
  1828. <td class="memname">bool ExFatFile::seekCur </td>
  1829. <td>(</td>
  1830. <td class="paramtype">int64_t&#160;</td>
  1831. <td class="paramname"><em>offset</em></td><td>)</td>
  1832. <td></td>
  1833. </tr>
  1834. </table>
  1835. </td>
  1836. <td class="mlabels-right">
  1837. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1838. </tr>
  1839. </table>
  1840. </div><div class="memdoc">
  1841. <p>Set the files position to current position + <em>pos</em>. See <a class="el" href="class_ex_fat_file.html#a9834c4da2f14c66f4bda26938ebb36f6">seekSet()</a>. </p><dl class="params"><dt>Parameters</dt><dd>
  1842. <table class="params">
  1843. <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>The new position in bytes from the current position. </td></tr>
  1844. </table>
  1845. </dd>
  1846. </dl>
  1847. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1848. </div>
  1849. </div>
  1850. <a id="a2994a71751ed4f137f48b2e9a7d94091"></a>
  1851. <h2 class="memtitle"><span class="permalink"><a href="#a2994a71751ed4f137f48b2e9a7d94091">&#9670;&nbsp;</a></span>seekEnd()</h2>
  1852. <div class="memitem">
  1853. <div class="memproto">
  1854. <table class="mlabels">
  1855. <tr>
  1856. <td class="mlabels-left">
  1857. <table class="memname">
  1858. <tr>
  1859. <td class="memname">bool ExFatFile::seekEnd </td>
  1860. <td>(</td>
  1861. <td class="paramtype">int64_t&#160;</td>
  1862. <td class="paramname"><em>offset</em> = <code>0</code></td><td>)</td>
  1863. <td></td>
  1864. </tr>
  1865. </table>
  1866. </td>
  1867. <td class="mlabels-right">
  1868. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1869. </tr>
  1870. </table>
  1871. </div><div class="memdoc">
  1872. <p>Set the files position to end-of-file + <em>offset</em>. See <a class="el" href="class_ex_fat_file.html#a9834c4da2f14c66f4bda26938ebb36f6">seekSet()</a>. Can't be used for directory files since file size is not defined. </p><dl class="params"><dt>Parameters</dt><dd>
  1873. <table class="params">
  1874. <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>The new position in bytes from end-of-file. </td></tr>
  1875. </table>
  1876. </dd>
  1877. </dl>
  1878. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1879. </div>
  1880. </div>
  1881. <a id="a9834c4da2f14c66f4bda26938ebb36f6"></a>
  1882. <h2 class="memtitle"><span class="permalink"><a href="#a9834c4da2f14c66f4bda26938ebb36f6">&#9670;&nbsp;</a></span>seekSet()</h2>
  1883. <div class="memitem">
  1884. <div class="memproto">
  1885. <table class="memname">
  1886. <tr>
  1887. <td class="memname">bool ExFatFile::seekSet </td>
  1888. <td>(</td>
  1889. <td class="paramtype">uint64_t&#160;</td>
  1890. <td class="paramname"><em>pos</em></td><td>)</td>
  1891. <td></td>
  1892. </tr>
  1893. </table>
  1894. </div><div class="memdoc">
  1895. <p>Sets a file's position.</p>
  1896. <dl class="params"><dt>Parameters</dt><dd>
  1897. <table class="params">
  1898. <tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>The new position in bytes from the beginning of the file.</td></tr>
  1899. </table>
  1900. </dd>
  1901. </dl>
  1902. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1903. </div>
  1904. </div>
  1905. <a id="a2cb3638069afd2d01b79e5dff1a66f55"></a>
  1906. <h2 class="memtitle"><span class="permalink"><a href="#a2cb3638069afd2d01b79e5dff1a66f55">&#9670;&nbsp;</a></span>sync()</h2>
  1907. <div class="memitem">
  1908. <div class="memproto">
  1909. <table class="memname">
  1910. <tr>
  1911. <td class="memname">bool ExFatFile::sync </td>
  1912. <td>(</td>
  1913. <td class="paramname"></td><td>)</td>
  1914. <td></td>
  1915. </tr>
  1916. </table>
  1917. </div><div class="memdoc">
  1918. <p>The <a class="el" href="class_ex_fat_file.html#a2cb3638069afd2d01b79e5dff1a66f55">sync()</a> call causes all modified data and directory fields to be written to the storage device.</p>
  1919. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1920. </div>
  1921. </div>
  1922. <a id="a6d3ab10983e206401ebd5c24a1c46174"></a>
  1923. <h2 class="memtitle"><span class="permalink"><a href="#a6d3ab10983e206401ebd5c24a1c46174">&#9670;&nbsp;</a></span>timestamp()</h2>
  1924. <div class="memitem">
  1925. <div class="memproto">
  1926. <table class="memname">
  1927. <tr>
  1928. <td class="memname">bool ExFatFile::timestamp </td>
  1929. <td>(</td>
  1930. <td class="paramtype">uint8_t&#160;</td>
  1931. <td class="paramname"><em>flags</em>, </td>
  1932. </tr>
  1933. <tr>
  1934. <td class="paramkey"></td>
  1935. <td></td>
  1936. <td class="paramtype">uint16_t&#160;</td>
  1937. <td class="paramname"><em>year</em>, </td>
  1938. </tr>
  1939. <tr>
  1940. <td class="paramkey"></td>
  1941. <td></td>
  1942. <td class="paramtype">uint8_t&#160;</td>
  1943. <td class="paramname"><em>month</em>, </td>
  1944. </tr>
  1945. <tr>
  1946. <td class="paramkey"></td>
  1947. <td></td>
  1948. <td class="paramtype">uint8_t&#160;</td>
  1949. <td class="paramname"><em>day</em>, </td>
  1950. </tr>
  1951. <tr>
  1952. <td class="paramkey"></td>
  1953. <td></td>
  1954. <td class="paramtype">uint8_t&#160;</td>
  1955. <td class="paramname"><em>hour</em>, </td>
  1956. </tr>
  1957. <tr>
  1958. <td class="paramkey"></td>
  1959. <td></td>
  1960. <td class="paramtype">uint8_t&#160;</td>
  1961. <td class="paramname"><em>minute</em>, </td>
  1962. </tr>
  1963. <tr>
  1964. <td class="paramkey"></td>
  1965. <td></td>
  1966. <td class="paramtype">uint8_t&#160;</td>
  1967. <td class="paramname"><em>second</em>&#160;</td>
  1968. </tr>
  1969. <tr>
  1970. <td></td>
  1971. <td>)</td>
  1972. <td></td><td></td>
  1973. </tr>
  1974. </table>
  1975. </div><div class="memdoc">
  1976. <p>Truncate a file at the current file position.</p>
  1977. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. Set a file's timestamps in its directory entry.</dd></dl>
  1978. <dl class="params"><dt>Parameters</dt><dd>
  1979. <table class="params">
  1980. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>Values for <em>flags</em> are constructed by a bitwise-inclusive OR of flags from the following list</td></tr>
  1981. </table>
  1982. </dd>
  1983. </dl>
  1984. <p>T_ACCESS - Set the file's last access date.</p>
  1985. <p>T_CREATE - Set the file's creation date and time.</p>
  1986. <p>T_WRITE - Set the file's last write/modification date and time.</p>
  1987. <dl class="params"><dt>Parameters</dt><dd>
  1988. <table class="params">
  1989. <tr><td class="paramdir">[in]</td><td class="paramname">year</td><td>Valid range 1980 - 2107 inclusive.</td></tr>
  1990. <tr><td class="paramdir">[in]</td><td class="paramname">month</td><td>Valid range 1 - 12 inclusive.</td></tr>
  1991. <tr><td class="paramdir">[in]</td><td class="paramname">day</td><td>Valid range 1 - 31 inclusive.</td></tr>
  1992. <tr><td class="paramdir">[in]</td><td class="paramname">hour</td><td>Valid range 0 - 23 inclusive.</td></tr>
  1993. <tr><td class="paramdir">[in]</td><td class="paramname">minute</td><td>Valid range 0 - 59 inclusive.</td></tr>
  1994. <tr><td class="paramdir">[in]</td><td class="paramname">second</td><td>Valid range 0 - 59 inclusive</td></tr>
  1995. </table>
  1996. </dd>
  1997. </dl>
  1998. <dl class="section note"><dt>Note</dt><dd>It is possible to set an invalid date since there is no check for the number of days in a month.</dd>
  1999. <dd>
  2000. Modify and access timestamps may be overwritten if a date time callback function has been set by dateTimeCallback().</dd></dl>
  2001. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2002. </div>
  2003. </div>
  2004. <a id="aca37955d3c7cce40f7f9e1ea078e5636"></a>
  2005. <h2 class="memtitle"><span class="permalink"><a href="#aca37955d3c7cce40f7f9e1ea078e5636">&#9670;&nbsp;</a></span>truncate() <span class="overload">[1/2]</span></h2>
  2006. <div class="memitem">
  2007. <div class="memproto">
  2008. <table class="memname">
  2009. <tr>
  2010. <td class="memname">bool ExFatFile::truncate </td>
  2011. <td>(</td>
  2012. <td class="paramname"></td><td>)</td>
  2013. <td></td>
  2014. </tr>
  2015. </table>
  2016. </div><div class="memdoc">
  2017. <p>Truncate a file at the current file position. will be maintained if it is less than or equal to <em>length</em> otherwise it will be set to end of file.</p>
  2018. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2019. </div>
  2020. </div>
  2021. <a id="a6262b0d6d43d2a426953a0a7d90f624f"></a>
  2022. <h2 class="memtitle"><span class="permalink"><a href="#a6262b0d6d43d2a426953a0a7d90f624f">&#9670;&nbsp;</a></span>truncate() <span class="overload">[2/2]</span></h2>
  2023. <div class="memitem">
  2024. <div class="memproto">
  2025. <table class="mlabels">
  2026. <tr>
  2027. <td class="mlabels-left">
  2028. <table class="memname">
  2029. <tr>
  2030. <td class="memname">bool ExFatFile::truncate </td>
  2031. <td>(</td>
  2032. <td class="paramtype">uint64_t&#160;</td>
  2033. <td class="paramname"><em>length</em></td><td>)</td>
  2034. <td></td>
  2035. </tr>
  2036. </table>
  2037. </td>
  2038. <td class="mlabels-right">
  2039. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2040. </tr>
  2041. </table>
  2042. </div><div class="memdoc">
  2043. <p>Truncate a file to a specified length. The current file position will be set to end of file.</p>
  2044. <dl class="params"><dt>Parameters</dt><dd>
  2045. <table class="params">
  2046. <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>The desired length for the file.</td></tr>
  2047. </table>
  2048. </dd>
  2049. </dl>
  2050. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2051. </div>
  2052. </div>
  2053. <a id="afc8af11ba8e3a830dff1dd5e59446243"></a>
  2054. <h2 class="memtitle"><span class="permalink"><a href="#afc8af11ba8e3a830dff1dd5e59446243">&#9670;&nbsp;</a></span>validLength()</h2>
  2055. <div class="memitem">
  2056. <div class="memproto">
  2057. <table class="mlabels">
  2058. <tr>
  2059. <td class="mlabels-left">
  2060. <table class="memname">
  2061. <tr>
  2062. <td class="memname">uint64_t ExFatFile::validLength </td>
  2063. <td>(</td>
  2064. <td class="paramname"></td><td>)</td>
  2065. <td></td>
  2066. </tr>
  2067. </table>
  2068. </td>
  2069. <td class="mlabels-right">
  2070. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2071. </tr>
  2072. </table>
  2073. </div><div class="memdoc">
  2074. <dl class="section return"><dt>Returns</dt><dd>The valid number of bytes in a file. </dd></dl>
  2075. </div>
  2076. </div>
  2077. <a id="a6fb2905a5e363554a5118b5d1322cd87"></a>
  2078. <h2 class="memtitle"><span class="permalink"><a href="#a6fb2905a5e363554a5118b5d1322cd87">&#9670;&nbsp;</a></span>write() <span class="overload">[1/3]</span></h2>
  2079. <div class="memitem">
  2080. <div class="memproto">
  2081. <table class="mlabels">
  2082. <tr>
  2083. <td class="mlabels-left">
  2084. <table class="memname">
  2085. <tr>
  2086. <td class="memname">size_t ExFatFile::write </td>
  2087. <td>(</td>
  2088. <td class="paramtype">const char *&#160;</td>
  2089. <td class="paramname"><em>str</em></td><td>)</td>
  2090. <td></td>
  2091. </tr>
  2092. </table>
  2093. </td>
  2094. <td class="mlabels-right">
  2095. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2096. </tr>
  2097. </table>
  2098. </div><div class="memdoc">
  2099. <p>Write a string to a file. Used by the Arduino Print class. </p><dl class="params"><dt>Parameters</dt><dd>
  2100. <table class="params">
  2101. <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>Pointer to the string. Use getWriteError to check for errors. </td></tr>
  2102. </table>
  2103. </dd>
  2104. </dl>
  2105. <dl class="section return"><dt>Returns</dt><dd>count of characters written for success or -1 for failure. </dd></dl>
  2106. </div>
  2107. </div>
  2108. <a id="afd011d17d66707623c28927a63f81015"></a>
  2109. <h2 class="memtitle"><span class="permalink"><a href="#afd011d17d66707623c28927a63f81015">&#9670;&nbsp;</a></span>write() <span class="overload">[2/3]</span></h2>
  2110. <div class="memitem">
  2111. <div class="memproto">
  2112. <table class="mlabels">
  2113. <tr>
  2114. <td class="mlabels-left">
  2115. <table class="memname">
  2116. <tr>
  2117. <td class="memname">size_t ExFatFile::write </td>
  2118. <td>(</td>
  2119. <td class="paramtype">uint8_t&#160;</td>
  2120. <td class="paramname"><em>b</em></td><td>)</td>
  2121. <td></td>
  2122. </tr>
  2123. </table>
  2124. </td>
  2125. <td class="mlabels-right">
  2126. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  2127. </tr>
  2128. </table>
  2129. </div><div class="memdoc">
  2130. <p>Write a single byte. </p><dl class="params"><dt>Parameters</dt><dd>
  2131. <table class="params">
  2132. <tr><td class="paramdir">[in]</td><td class="paramname">b</td><td>The byte to be written. </td></tr>
  2133. </table>
  2134. </dd>
  2135. </dl>
  2136. <dl class="section return"><dt>Returns</dt><dd>+1 for success or zero for failure. </dd></dl>
  2137. </div>
  2138. </div>
  2139. <a id="abc1423c7b550614d1067e7173f8b46a8"></a>
  2140. <h2 class="memtitle"><span class="permalink"><a href="#abc1423c7b550614d1067e7173f8b46a8">&#9670;&nbsp;</a></span>write() <span class="overload">[3/3]</span></h2>
  2141. <div class="memitem">
  2142. <div class="memproto">
  2143. <table class="memname">
  2144. <tr>
  2145. <td class="memname">size_t ExFatFile::write </td>
  2146. <td>(</td>
  2147. <td class="paramtype">const void *&#160;</td>
  2148. <td class="paramname"><em>buf</em>, </td>
  2149. </tr>
  2150. <tr>
  2151. <td class="paramkey"></td>
  2152. <td></td>
  2153. <td class="paramtype">size_t&#160;</td>
  2154. <td class="paramname"><em>count</em>&#160;</td>
  2155. </tr>
  2156. <tr>
  2157. <td></td>
  2158. <td>)</td>
  2159. <td></td><td></td>
  2160. </tr>
  2161. </table>
  2162. </div><div class="memdoc">
  2163. <p>Write data to an open file.</p>
  2164. <dl class="section note"><dt>Note</dt><dd>Data is moved to the cache but may not be written to the storage device until <a class="el" href="class_ex_fat_file.html#a2cb3638069afd2d01b79e5dff1a66f55">sync()</a> is called.</dd></dl>
  2165. <dl class="params"><dt>Parameters</dt><dd>
  2166. <table class="params">
  2167. <tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>Pointer to the location of the data to be written.</td></tr>
  2168. <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>Number of bytes to write.</td></tr>
  2169. </table>
  2170. </dd>
  2171. </dl>
  2172. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_ex_fat_file.html#a6fb2905a5e363554a5118b5d1322cd87">write()</a> returns the number of bytes written, always <em>count</em>. </dd></dl>
  2173. </div>
  2174. </div>
  2175. <h2 class="groupheader">Friends And Related Function Documentation</h2>
  2176. <a id="a064869383f7639b113eb0aaf0b84335c"></a>
  2177. <h2 class="memtitle"><span class="permalink"><a href="#a064869383f7639b113eb0aaf0b84335c">&#9670;&nbsp;</a></span>ExFatVolume</h2>
  2178. <div class="memitem">
  2179. <div class="memproto">
  2180. <table class="mlabels">
  2181. <tr>
  2182. <td class="mlabels-left">
  2183. <table class="memname">
  2184. <tr>
  2185. <td class="memname">friend class <a class="el" href="class_ex_fat_volume.html">ExFatVolume</a></td>
  2186. </tr>
  2187. </table>
  2188. </td>
  2189. <td class="mlabels-right">
  2190. <span class="mlabels"><span class="mlabel">friend</span></span> </td>
  2191. </tr>
  2192. </table>
  2193. </div><div class="memdoc">
  2194. <p><a class="el" href="class_ex_fat_volume.html" title="exFAT volume. ">ExFatVolume</a> allowed access to private members. </p>
  2195. </div>
  2196. </div>
  2197. <hr/>The documentation for this class was generated from the following files:<ul>
  2198. <li>ArduinoSdFat/libraries/SdFat/src/ExFatLib/<a class="el" href="_ex_fat_file_8h.html">ExFatFile.h</a></li>
  2199. <li>ArduinoSdFat/libraries/SdFat/src/ExFatLib/ExFatFile.cpp</li>
  2200. <li>ArduinoSdFat/libraries/SdFat/src/ExFatLib/ExFatFilePrint.cpp</li>
  2201. <li>ArduinoSdFat/libraries/SdFat/src/ExFatLib/ExFatFileWrite.cpp</li>
  2202. </ul>
  2203. </div><!-- contents -->
  2204. <!-- start footer part -->
  2205. <hr class="footer"/><address class="footer"><small>
  2206. Generated on Thu May 9 2019 06:51:28 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  2207. <img class="footer" src="doxygen.png" alt="doxygen"/>
  2208. </a> 1.8.14
  2209. </small></address>
  2210. </body>
  2211. </html>