binary.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  4. <title>Binary Parsers</title>
  5. <link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
  7. <link rel="home" href="../../index.html" title="Spirit X3 3.0.4">
  8. <link rel="up" href="../quick_reference.html" title="Quick Reference">
  9. <link rel="prev" href="auxiliary.html" title="Auxiliary Parsers">
  10. <link rel="next" href="directive.html" title="Parser Directives">
  11. </head>
  12. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  13. <table cellpadding="2" width="100%"><tr>
  14. <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
  15. <td align="center"><a href="../../../../../../../index.html">Home</a></td>
  16. <td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
  17. <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
  18. <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
  19. <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
  20. </tr></table>
  21. <hr>
  22. <div class="spirit-nav">
  23. <a accesskey="p" href="auxiliary.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../quick_reference.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="directive.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
  24. </div>
  25. <div class="section">
  26. <div class="titlepage"><div><div><h3 class="title">
  27. <a name="spirit_x3.quick_reference.binary"></a><a class="link" href="binary.html" title="Binary Parsers">Binary Parsers</a>
  28. </h3></div></div></div>
  29. <div class="informaltable"><table class="table">
  30. <colgroup>
  31. <col>
  32. <col>
  33. <col>
  34. </colgroup>
  35. <thead><tr>
  36. <th>
  37. <p>
  38. Expression
  39. </p>
  40. </th>
  41. <th>
  42. <p>
  43. Attribute
  44. </p>
  45. </th>
  46. <th>
  47. <p>
  48. Description
  49. </p>
  50. </th>
  51. </tr></thead>
  52. <tbody>
  53. <tr>
  54. <td>
  55. <p>
  56. <code class="computeroutput"><span class="identifier">byte_</span></code>
  57. </p>
  58. </td>
  59. <td>
  60. <p>
  61. 8 bits native endian
  62. </p>
  63. </td>
  64. <td>
  65. <p>
  66. Matches an 8 bit binary in native endian representation
  67. </p>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td>
  72. <p>
  73. <code class="computeroutput"><span class="identifier">word</span></code>
  74. </p>
  75. </td>
  76. <td>
  77. <p>
  78. 16 bits native endian
  79. </p>
  80. </td>
  81. <td>
  82. <p>
  83. Matches a 16 bit binary in native endian representation
  84. </p>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td>
  89. <p>
  90. <code class="computeroutput"><span class="identifier">big_word</span></code>
  91. </p>
  92. </td>
  93. <td>
  94. <p>
  95. 16 bits big endian
  96. </p>
  97. </td>
  98. <td>
  99. <p>
  100. Matches a 16 bit binary in big endian representation
  101. </p>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td>
  106. <p>
  107. <code class="computeroutput"><span class="identifier">little_word</span></code>
  108. </p>
  109. </td>
  110. <td>
  111. <p>
  112. 16 bits little endian
  113. </p>
  114. </td>
  115. <td>
  116. <p>
  117. Matches a 16 bit binary in little endian representation
  118. </p>
  119. </td>
  120. </tr>
  121. <tr>
  122. <td>
  123. <p>
  124. <code class="computeroutput"><span class="identifier">dword</span></code>
  125. </p>
  126. </td>
  127. <td>
  128. <p>
  129. 32 bits native endian
  130. </p>
  131. </td>
  132. <td>
  133. <p>
  134. Matches a 32 bit binary in native endian representation
  135. </p>
  136. </td>
  137. </tr>
  138. <tr>
  139. <td>
  140. <p>
  141. <code class="computeroutput"><span class="identifier">big_dword</span></code>
  142. </p>
  143. </td>
  144. <td>
  145. <p>
  146. 32 bits big endian
  147. </p>
  148. </td>
  149. <td>
  150. <p>
  151. Matches a 32 bit binary in big endian representation
  152. </p>
  153. </td>
  154. </tr>
  155. <tr>
  156. <td>
  157. <p>
  158. <code class="computeroutput"><span class="identifier">little_dword</span></code>
  159. </p>
  160. </td>
  161. <td>
  162. <p>
  163. 32 bits little endian
  164. </p>
  165. </td>
  166. <td>
  167. <p>
  168. Matches a 32 bit binary in little endian representation
  169. </p>
  170. </td>
  171. </tr>
  172. <tr>
  173. <td>
  174. <p>
  175. <code class="computeroutput"><span class="identifier">qword</span></code>
  176. </p>
  177. </td>
  178. <td>
  179. <p>
  180. 64 bits native endian
  181. </p>
  182. </td>
  183. <td>
  184. <p>
  185. Matches a 64 bit binary in native endian representation
  186. </p>
  187. </td>
  188. </tr>
  189. <tr>
  190. <td>
  191. <p>
  192. <code class="computeroutput"><span class="identifier">big_qword</span></code>
  193. </p>
  194. </td>
  195. <td>
  196. <p>
  197. 64 bits big endian
  198. </p>
  199. </td>
  200. <td>
  201. <p>
  202. Matches a 64 bit binary in big endian representation
  203. </p>
  204. </td>
  205. </tr>
  206. <tr>
  207. <td>
  208. <p>
  209. <code class="computeroutput"><span class="identifier">little_qword</span></code>
  210. </p>
  211. </td>
  212. <td>
  213. <p>
  214. 64 bits little endian
  215. </p>
  216. </td>
  217. <td>
  218. <p>
  219. Matches a 64 bit binary in little endian representation
  220. </p>
  221. </td>
  222. </tr>
  223. </tbody>
  224. </table></div>
  225. </div>
  226. <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
  227. <td align="left"></td>
  228. <td align="right"><div class="copyright-footer">Copyright &#169; 2001-2018 Joel de Guzman,
  229. Hartmut Kaiser<p>
  230. Distributed under the Boost Software License, Version 1.0. (See accompanying
  231. file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
  232. </p>
  233. </div></td>
  234. </tr></table>
  235. <hr>
  236. <div class="spirit-nav">
  237. <a accesskey="p" href="auxiliary.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../quick_reference.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="directive.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
  238. </div>
  239. </body>
  240. </html>