|
44 | 44 | <li class="nav-group-task"> |
45 | 45 | <a href="Classes/JIT.html">JIT</a> |
46 | 46 | </li> |
| 47 | + <li class="nav-group-task"> |
| 48 | + <a href="Classes/MemoryBuffer.html">MemoryBuffer</a> |
| 49 | + </li> |
47 | 50 | <li class="nav-group-task"> |
48 | 51 | <a href="Classes/Module.html">Module</a> |
49 | 52 | </li> |
|
94 | 97 | <li class="nav-group-task"> |
95 | 98 | <a href="Enums/Linkage.html">Linkage</a> |
96 | 99 | </li> |
| 100 | + <li class="nav-group-task"> |
| 101 | + <a href="Enums/MemoryBufferError.html">MemoryBufferError</a> |
| 102 | + </li> |
97 | 103 | <li class="nav-group-task"> |
98 | 104 | <a href="Enums/ModuleError.html">ModuleError</a> |
99 | 105 | </li> |
@@ -412,6 +418,47 @@ <h4>Declaration</h4> |
412 | 418 | </li> |
413 | 419 | </ul> |
414 | 420 | </div> |
| 421 | + <div class="task-group"> |
| 422 | + <ul> |
| 423 | + <li class="item"> |
| 424 | + <div> |
| 425 | + <code> |
| 426 | + <a name="/s:C4LLVM12MemoryBuffer"></a> |
| 427 | + <a name="//apple_ref/swift/Class/MemoryBuffer" class="dashAnchor"></a> |
| 428 | + <a class="token" href="#/s:C4LLVM12MemoryBuffer">MemoryBuffer</a> |
| 429 | + </code> |
| 430 | + </div> |
| 431 | + <div class="height-container"> |
| 432 | + <div class="pointer-container"></div> |
| 433 | + <section class="section"> |
| 434 | + <div class="pointer"></div> |
| 435 | + <div class="abstract"> |
| 436 | + <p><code>MemoryBuffer</code> provides simple read-only access to a block of memory, and |
| 437 | +provides simple methods for reading files and standard input into a memory |
| 438 | +buffer. In addition to basic access to the characters in the file, this |
| 439 | +interface guarantees you can read one character past the end of the file, |
| 440 | +and that this character will read as ’\0’.</p> |
| 441 | + |
| 442 | +<p>The ’\0’ guarantee is needed to support an optimization – it’s intended to |
| 443 | +be more efficient for clients which are reading all the data to stop |
| 444 | +reading when they encounter a ’\0’ than to continually check the file |
| 445 | +position to see if it has reached the end of the file.</p> |
| 446 | + |
| 447 | + <a href="Classes/MemoryBuffer.html" class="slightly-smaller">See more</a> |
| 448 | + </div> |
| 449 | + <div class="declaration"> |
| 450 | + <h4>Declaration</h4> |
| 451 | + <div class="language"> |
| 452 | + <p class="aside-title">Swift</p> |
| 453 | + <pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">MemoryBuffer</span><span class="p">:</span> <span class="kt">Sequence</span></code></pre> |
| 454 | + |
| 455 | + </div> |
| 456 | + </div> |
| 457 | + </section> |
| 458 | + </div> |
| 459 | + </li> |
| 460 | + </ul> |
| 461 | + </div> |
415 | 462 | <div class="task-group"> |
416 | 463 | <ul> |
417 | 464 | <li class="item"> |
|
0 commit comments