Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: native_client_sdk/doc_generated/devguide/coding/nacl_io.html

Issue 306973002: [NaCl SDK] rename nacl_io demo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | native_client_sdk/doc_generated/devguide/devcycle/building.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {{+bindTo:partials.standard_nacl_article}} 1 {{+bindTo:partials.standard_nacl_article}}
2 2
3 <section id="the-nacl-io-library"> 3 <section id="the-nacl-io-library">
4 <span id="nacl-io"></span><h1 id="the-nacl-io-library"><span id="nacl-io"></span >The nacl_io Library</h1> 4 <span id="nacl-io"></span><h1 id="the-nacl-io-library"><span id="nacl-io"></span >The nacl_io Library</h1>
5 <div class="contents local" id="contents" style="display: none"> 5 <div class="contents local" id="contents" style="display: none">
6 <ul class="small-gap"> 6 <ul class="small-gap">
7 <li><a class="reference internal" href="#introduction" id="id1">Introduction</a> </li> 7 <li><a class="reference internal" href="#introduction" id="id1">Introduction</a> </li>
8 <li><a class="reference internal" href="#using-nacl-io" id="id2">Using nacl_io</ a></li> 8 <li><a class="reference internal" href="#using-nacl-io" id="id2">Using nacl_io</ a></li>
9 <li><p class="first"><a class="reference internal" href="#the-nacl-io-demo" id=" id3">The nacl_io demo</a></p> 9 <li><p class="first"><a class="reference internal" href="#the-nacl-io-demo" id=" id3">The nacl_io demo</a></p>
10 <ul class="small-gap"> 10 <ul class="small-gap">
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 <h2 id="the-nacl-io-demo">The nacl_io demo</h2> 83 <h2 id="the-nacl-io-demo">The nacl_io demo</h2>
84 <section id="building-and-running-the-demo"> 84 <section id="building-and-running-the-demo">
85 <h3 id="building-and-running-the-demo">Building and running the demo</h3> 85 <h3 id="building-and-running-the-demo">Building and running the demo</h3>
86 <p>The demo application launches a Native Client module that mounts three file 86 <p>The demo application launches a Native Client module that mounts three file
87 systems and displays a set of controls that let you work with them:</p> 87 systems and displays a set of controls that let you work with them:</p>
88 <img alt="/native-client/images/nacl_io1.png" src="/native-client/images/nacl_io 1.png" /> 88 <img alt="/native-client/images/nacl_io1.png" src="/native-client/images/nacl_io 1.png" />
89 <p>Follow these steps to build and run the demo:</p> 89 <p>Follow these steps to build and run the demo:</p>
90 <ul class="small-gap"> 90 <ul class="small-gap">
91 <li><p class="first">Open a terminal in the demo directory:</p> 91 <li><p class="first">Open a terminal in the demo directory:</p>
92 <pre class="prettyprint"> 92 <pre class="prettyprint">
93 $ cd $NACL_SDK_ROOT/examples/demo/nacl_io 93 $ cd $NACL_SDK_ROOT/examples/demo/nacl_io_demo
94 </pre> 94 </pre>
95 </li> 95 </li>
96 <li><p class="first">run the demo:</p> 96 <li><p class="first">run the demo:</p>
97 <pre class="prettyprint"> 97 <pre class="prettyprint">
98 $ make run 98 $ make run
99 </pre> 99 </pre>
100 </li> 100 </li>
101 </ul> 101 </ul>
102 <p>Once the demo is running, try these operations:</p> 102 <p>Once the demo is running, try these operations:</p>
103 <ol class="arabic simple"> 103 <ol class="arabic simple">
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 bytes_written = fwrite(data, 1, data_len, file); 207 bytes_written = fwrite(data, 1, data_len, file);
208 208
209 *output = PrintfToNewString(&quot;fwrite\1%s\1%d&quot;, file_index_string, 209 *output = PrintfToNewString(&quot;fwrite\1%s\1%d&quot;, file_index_string,
210 bytes_written); 210 bytes_written);
211 return 0; 211 return 0;
212 } 212 }
213 </pre> 213 </pre>
214 </section></section></section><section id="reference-information"> 214 </section></section></section><section id="reference-information">
215 <h2 id="reference-information">Reference information</h2> 215 <h2 id="reference-information">Reference information</h2>
216 <p>The example discussed here is included in the SDK in the directory 216 <p>The example discussed here is included in the SDK in the directory
217 <code>examples/demo/nacl_io</code>.</p> 217 <code>examples/demo/nacl_io_demo</code>.</p>
218 <p>The nacl_io library is included in the SDK toolchain and is not a part of the 218 <p>The nacl_io library is included in the SDK toolchain and is not a part of the
219 Pepper API. For reference information related to the nacl_io interface see 219 Pepper API. For reference information related to the nacl_io interface see
220 its header file in the SDK directory, located at 220 its header file in the SDK directory, located at
221 <code>include/nacl_io/nacl_io.h</code>.</p> 221 <code>include/nacl_io/nacl_io.h</code>.</p>
222 <p>For more about the HTML5 file system read the <a class="reference external" h ref="http://dev.w3.org/2009/dap/file-system/pub/FileSystem/">specification</a>.< /p> 222 <p>For more about the HTML5 file system read the <a class="reference external" h ref="http://dev.w3.org/2009/dap/file-system/pub/FileSystem/">specification</a>.< /p>
223 </section></section> 223 </section></section>
224 224
225 {{/partials.standard_nacl_article}} 225 {{/partials.standard_nacl_article}}
OLDNEW
« no previous file with comments | « no previous file | native_client_sdk/doc_generated/devguide/devcycle/building.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698