• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Binary Big Endianness Generators</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 2.5.8">
8<link rel="up" href="../binary.html" title="Binary Generators">
9<link rel="prev" href="binary_little.html" title="Binary Little Endianness Generators">
10<link rel="next" href="../char.html" title="Char Generators">
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="binary_little.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../binary.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="../char.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h5 class="title">
27<a name="spirit.karma.reference.binary.binary_big"></a><a class="link" href="binary_big.html" title="Binary Big Endianness Generators">Binary
28          Big Endianness Generators</a>
29</h5></div></div></div>
30<h6>
31<a name="spirit.karma.reference.binary.binary_big.h0"></a>
32            <span class="phrase"><a name="spirit.karma.reference.binary.binary_big.description"></a></span><a class="link" href="binary_big.html#spirit.karma.reference.binary.binary_big.description">Description</a>
33          </h6>
34<p>
35            The big native endianness generators described in this section are used
36            to emit binary byte streams laid out conforming to the big endianness
37            byte order.
38          </p>
39<h6>
40<a name="spirit.karma.reference.binary.binary_big.h1"></a>
41            <span class="phrase"><a name="spirit.karma.reference.binary.binary_big.header"></a></span><a class="link" href="binary_big.html#spirit.karma.reference.binary.binary_big.header">Header</a>
42          </h6>
43<pre class="programlisting"><span class="comment">// forwards to &lt;boost/spirit/home/karma/binary.hpp&gt;</span>
44<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">spirit</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">karma_binary</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
45</pre>
46<p>
47            Also, see <a class="link" href="../../../structure/include.html" title="Include">Include Structure</a>.
48          </p>
49<h6>
50<a name="spirit.karma.reference.binary.binary_big.h2"></a>
51            <span class="phrase"><a name="spirit.karma.reference.binary.binary_big.namespace"></a></span><a class="link" href="binary_big.html#spirit.karma.reference.binary.binary_big.namespace">Namespace</a>
52          </h6>
53<div class="informaltable"><table class="table">
54<colgroup><col></colgroup>
55<thead><tr><th>
56                    <p>
57                      Name
58                    </p>
59                  </th></tr></thead>
60<tbody>
61<tr><td>
62                    <p>
63                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">big_word</span> <span class="comment">//
64                      alias: boost::spirit::karma::big_word</span></code>
65                    </p>
66                  </td></tr>
67<tr><td>
68                    <p>
69                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">big_dword</span> <span class="comment">//
70                      alias: boost::spirit::karma::big_dword</span></code>
71                    </p>
72                  </td></tr>
73<tr><td>
74                    <p>
75                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">big_qword</span> <span class="comment">//
76                      alias: boost::spirit::karma::big_qword</span></code>
77                    </p>
78                  </td></tr>
79<tr><td>
80                    <p>
81                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">big_bin_float</span> <span class="comment">//
82                      alias: boost::spirit::karma::big_bin_float</span></code>
83                    </p>
84                  </td></tr>
85<tr><td>
86                    <p>
87                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">big_bin_double</span> <span class="comment">//
88                      alias: boost::spirit::karma::big_bin_double</span></code>
89                    </p>
90                  </td></tr>
91</tbody>
92</table></div>
93<div class="note"><table border="0" summary="Note">
94<tr>
95<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../images/note.png"></td>
96<th align="left">Note</th>
97</tr>
98<tr><td align="left" valign="top"><p>
99              The generators <code class="computeroutput"><span class="identifier">big_qword</span></code>
100              and <code class="computeroutput"><span class="identifier">big_qword</span><span class="special">(</span><span class="identifier">qw</span><span class="special">)</span></code>
101              are only available on platforms where the preprocessor constant <code class="computeroutput"><span class="identifier">BOOST_HAS_LONG_LONG</span></code> is defined (i.e.
102              on platforms having native support for <code class="computeroutput"><span class="keyword">unsigned</span>
103              <span class="keyword">long</span> <span class="keyword">long</span></code>
104              (64 bit) integer types).
105            </p></td></tr>
106</table></div>
107<h6>
108<a name="spirit.karma.reference.binary.binary_big.h3"></a>
109            <span class="phrase"><a name="spirit.karma.reference.binary.binary_big.model_of"></a></span><a class="link" href="binary_big.html#spirit.karma.reference.binary.binary_big.model_of">Model of</a>
110          </h6>
111<div class="blockquote"><blockquote class="blockquote"><p>
112              <a class="link" href="../generator_concepts/primitivegenerator.html" title="PrimitiveGenerator"><code class="computeroutput"><span class="identifier">PrimitiveGenerator</span></code></a>
113            </p></blockquote></div>
114<div class="variablelist">
115<p class="title"><b>Notation</b></p>
116<dl class="variablelist">
117<dt><span class="term"><code class="computeroutput"><span class="identifier">w</span></code></span></dt>
118<dd><p>
119                  A 16 bit binary value or a <a class="link" href="../basics.html#spirit.karma.reference.basics.lazy_argument">Lazy
120                  Argument</a> that evaluates to a 16 bit binary value. This value
121                  is always interpreted using native endianness.
122                </p></dd>
123<dt><span class="term"><code class="computeroutput"><span class="identifier">dw</span></code></span></dt>
124<dd><p>
125                  A 32 bit binary value or a <a class="link" href="../basics.html#spirit.karma.reference.basics.lazy_argument">Lazy
126                  Argument</a> that evaluates to a 32 bit binary value. This value
127                  is always interpreted using native endianness.
128                </p></dd>
129<dt><span class="term"><code class="computeroutput"><span class="identifier">qw</span></code></span></dt>
130<dd><p>
131                  A 64 bit binary value or a <a class="link" href="../basics.html#spirit.karma.reference.basics.lazy_argument">Lazy
132                  Argument</a> that evaluates to a 64 bit binary value. This value
133                  is always interpreted using native endianness.
134                </p></dd>
135<dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt>
136<dd><p>
137                  A float binary value or a <a class="link" href="../basics.html#spirit.karma.reference.basics.lazy_argument">Lazy
138                  Argument</a> that evaluates to a float binary value. This value
139                  is always interpreted using native endianness.
140                </p></dd>
141<dt><span class="term"><code class="computeroutput"><span class="identifier">d</span></code></span></dt>
142<dd><p>
143                  A double binary value or a <a class="link" href="../basics.html#spirit.karma.reference.basics.lazy_argument">Lazy
144                  Argument</a> that evaluates to a double binary value. This value
145                  is always interpreted using native endianness.
146                </p></dd>
147</dl>
148</div>
149<h6>
150<a name="spirit.karma.reference.binary.binary_big.h4"></a>
151            <span class="phrase"><a name="spirit.karma.reference.binary.binary_big.expression_semantics"></a></span><a class="link" href="binary_big.html#spirit.karma.reference.binary.binary_big.expression_semantics">Expression
152            Semantics</a>
153          </h6>
154<p>
155            Semantics of an expression is defined only where it differs from, or
156            is not defined in <a class="link" href="../generator_concepts/primitivegenerator.html" title="PrimitiveGenerator"><code class="computeroutput"><span class="identifier">PrimitiveGenerator</span></code></a>.
157          </p>
158<div class="informaltable"><table class="table">
159<colgroup>
160<col>
161<col>
162</colgroup>
163<thead><tr>
164<th>
165                    <p>
166                      Expression
167                    </p>
168                  </th>
169<th>
170                    <p>
171                      Description
172                    </p>
173                  </th>
174</tr></thead>
175<tbody>
176<tr>
177<td>
178                    <p>
179                      <code class="computeroutput"><span class="identifier">big_word</span></code>
180                    </p>
181                  </td>
182<td>
183                    <p>
184                      Output the binary representation of the least significant 16
185                      bits of the mandatory attribute in big endian representation.
186                      This generator never fails (unless the underlying output stream
187                      reports an error).
188                    </p>
189                  </td>
190</tr>
191<tr>
192<td>
193                    <p>
194                      <code class="computeroutput"><span class="identifier">big_dword</span></code>
195                    </p>
196                  </td>
197<td>
198                    <p>
199                      Output the binary representation of the least significant 32
200                      bits of the mandatory attribute in big endian representation.
201                      This generator never fails (unless the underlying output stream
202                      reports an error).
203                    </p>
204                  </td>
205</tr>
206<tr>
207<td>
208                    <p>
209                      <code class="computeroutput"><span class="identifier">big_qword</span></code>
210                    </p>
211                  </td>
212<td>
213                    <p>
214                      Output the binary representation of the least significant 64
215                      bits of the mandatory attribute in big endian representation.
216                      This generator never fails (unless the underlying output stream
217                      reports an error).
218                    </p>
219                  </td>
220</tr>
221<tr>
222<td>
223                    <p>
224                      <code class="computeroutput"><span class="identifier">big_bin_float</span></code>
225                    </p>
226                  </td>
227<td>
228                    <p>
229                      Output the binary representation of the mandatory float attribute
230                      in big endian representation. This generator never fails (unless
231                      the underlying output stream reports an error).
232                    </p>
233                  </td>
234</tr>
235<tr>
236<td>
237                    <p>
238                      <code class="computeroutput"><span class="identifier">big_bin_double</span></code>
239                    </p>
240                  </td>
241<td>
242                    <p>
243                      Output the binary representation of the mandatory double attribute
244                      in big endian representation. This generator never fails (unless
245                      the underlying output stream reports an error).
246                    </p>
247                  </td>
248</tr>
249<tr>
250<td>
251                    <p>
252                      <code class="computeroutput"><span class="identifier">big_word</span><span class="special">(</span><span class="identifier">w</span><span class="special">)</span></code>
253                    </p>
254                  </td>
255<td>
256                    <p>
257                      Output the binary representation of the least significant 16
258                      bits of the immediate parameter in big endian representation.
259                      This generator never fails (unless the underlying output stream
260                      reports an error).
261                    </p>
262                  </td>
263</tr>
264<tr>
265<td>
266                    <p>
267                      <code class="computeroutput"><span class="identifier">big_dword</span><span class="special">(</span><span class="identifier">dw</span><span class="special">)</span></code>
268                    </p>
269                  </td>
270<td>
271                    <p>
272                      Output the binary representation of the least significant 32
273                      bits of the immediate parameter in big endian representation.
274                      This generator never fails (unless the underlying output stream
275                      reports an error).
276                    </p>
277                  </td>
278</tr>
279<tr>
280<td>
281                    <p>
282                      <code class="computeroutput"><span class="identifier">big_qword</span><span class="special">(</span><span class="identifier">qw</span><span class="special">)</span></code>
283                    </p>
284                  </td>
285<td>
286                    <p>
287                      Output the binary representation of the least significant 64
288                      bits of the immediate parameter in big endian representation.
289                      This generator never fails (unless the underlying output stream
290                      reports an error).
291                    </p>
292                  </td>
293</tr>
294<tr>
295<td>
296                    <p>
297                      <code class="computeroutput"><span class="identifier">big_bin_float</span><span class="special">(</span><span class="identifier">f</span><span class="special">)</span></code>
298                    </p>
299                  </td>
300<td>
301                    <p>
302                      Output the binary representation of the immediate float parameter
303                      in big endian representation. This generator never fails (unless
304                      the underlying output stream reports an error).
305                    </p>
306                  </td>
307</tr>
308<tr>
309<td>
310                    <p>
311                      <code class="computeroutput"><span class="identifier">big_bin_double</span><span class="special">(</span><span class="identifier">d</span><span class="special">)</span></code>
312                    </p>
313                  </td>
314<td>
315                    <p>
316                      Output the binary representation of the immediate double parameter
317                      in big endian representation. This generator never fails (unless
318                      the underlying output stream reports an error).
319                    </p>
320                  </td>
321</tr>
322</tbody>
323</table></div>
324<h6>
325<a name="spirit.karma.reference.binary.binary_big.h5"></a>
326            <span class="phrase"><a name="spirit.karma.reference.binary.binary_big.attributes"></a></span><a class="link" href="binary_big.html#spirit.karma.reference.binary.binary_big.attributes">Attributes</a>
327          </h6>
328<div class="informaltable"><table class="table">
329<colgroup>
330<col>
331<col>
332</colgroup>
333<thead><tr>
334<th>
335                    <p>
336                      Expression
337                    </p>
338                  </th>
339<th>
340                    <p>
341                      Attribute
342                    </p>
343                  </th>
344</tr></thead>
345<tbody>
346<tr>
347<td>
348                    <p>
349                      <code class="computeroutput"><span class="identifier">big_word</span></code>
350                    </p>
351                  </td>
352<td>
353                    <p>
354                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">uint_least16_t</span></code>, attribute
355                      is mandatory (otherwise compilation will fail)
356                    </p>
357                  </td>
358</tr>
359<tr>
360<td>
361                    <p>
362                      <code class="computeroutput"><span class="identifier">big_dword</span></code>
363                    </p>
364                  </td>
365<td>
366                    <p>
367                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">uint_least32_t</span></code>, attribute
368                      is mandatory (otherwise compilation will fail)
369                    </p>
370                  </td>
371</tr>
372<tr>
373<td>
374                    <p>
375                      <code class="computeroutput"><span class="identifier">big_qword</span></code>
376                    </p>
377                  </td>
378<td>
379                    <p>
380                      <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">uint_least64_t</span></code>, attribute
381                      is mandatory (otherwise compilation will fail)
382                    </p>
383                  </td>
384</tr>
385<tr>
386<td>
387                    <p>
388                      <code class="computeroutput"><span class="identifier">big_bin_float</span></code>
389                    </p>
390                  </td>
391<td>
392                    <p>
393                      <code class="computeroutput"><span class="keyword">float</span></code>, attribute
394                      is mandatory (otherwise compilation will fail)
395                    </p>
396                  </td>
397</tr>
398<tr>
399<td>
400                    <p>
401                      <code class="computeroutput"><span class="identifier">big_bin_double</span></code>
402                    </p>
403                  </td>
404<td>
405                    <p>
406                      <code class="computeroutput"><span class="keyword">double</span></code>, attribute
407                      is mandatory (otherwise compilation will fail)
408                    </p>
409                  </td>
410</tr>
411<tr>
412<td>
413                    <p>
414                      <code class="computeroutput"><span class="identifier">big_word</span><span class="special">(</span><span class="identifier">w</span><span class="special">)</span></code>
415                    </p>
416                  </td>
417<td>
418                    <p>
419                      <code class="computeroutput"><span class="identifier">unused</span></code>
420                    </p>
421                  </td>
422</tr>
423<tr>
424<td>
425                    <p>
426                      <code class="computeroutput"><span class="identifier">big_dword</span><span class="special">(</span><span class="identifier">dw</span><span class="special">)</span></code>
427                    </p>
428                  </td>
429<td>
430                    <p>
431                      <code class="computeroutput"><span class="identifier">unused</span></code>
432                    </p>
433                  </td>
434</tr>
435<tr>
436<td>
437                    <p>
438                      <code class="computeroutput"><span class="identifier">big_qword</span><span class="special">(</span><span class="identifier">qw</span><span class="special">)</span></code>
439                    </p>
440                  </td>
441<td>
442                    <p>
443                      <code class="computeroutput"><span class="identifier">unused</span></code>
444                    </p>
445                  </td>
446</tr>
447<tr>
448<td>
449                    <p>
450                      <code class="computeroutput"><span class="identifier">big_bin_float</span><span class="special">(</span><span class="identifier">f</span><span class="special">)</span></code>
451                    </p>
452                  </td>
453<td>
454                    <p>
455                      <code class="computeroutput"><span class="identifier">unused</span></code>
456                    </p>
457                  </td>
458</tr>
459<tr>
460<td>
461                    <p>
462                      <code class="computeroutput"><span class="identifier">big_bin_double</span><span class="special">(</span><span class="identifier">d</span><span class="special">)</span></code>
463                    </p>
464                  </td>
465<td>
466                    <p>
467                      <code class="computeroutput"><span class="identifier">unused</span></code>
468                    </p>
469                  </td>
470</tr>
471</tbody>
472</table></div>
473<h6>
474<a name="spirit.karma.reference.binary.binary_big.h6"></a>
475            <span class="phrase"><a name="spirit.karma.reference.binary.binary_big.complexity"></a></span><a class="link" href="binary_big.html#spirit.karma.reference.binary.binary_big.complexity">Complexity</a>
476          </h6>
477<div class="blockquote"><blockquote class="blockquote"><p>
478              O(N), where N is the number of bytes emitted by the binary generator
479            </p></blockquote></div>
480<h6>
481<a name="spirit.karma.reference.binary.binary_big.h7"></a>
482            <span class="phrase"><a name="spirit.karma.reference.binary.binary_big.example"></a></span><a class="link" href="binary_big.html#spirit.karma.reference.binary.binary_big.example">Example</a>
483          </h6>
484<div class="note"><table border="0" summary="Note">
485<tr>
486<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../images/note.png"></td>
487<th align="left">Note</th>
488</tr>
489<tr><td align="left" valign="top"><p>
490              The test harness for the example(s) below is presented in the <a class="link" href="../basics.html#spirit.karma.reference.basics.examples">Basics Examples</a>
491              section.
492            </p></td></tr>
493</table></div>
494<p>
495            Some includes:
496          </p>
497<p>
498</p>
499<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">spirit</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">karma</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
500<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">spirit</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">support_utree</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
501<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">spirit</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">phoenix_core</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
502<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">spirit</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">phoenix_operator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
503<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">std_pair</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
504<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">iostream</span><span class="special">&gt;</span>
505<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">string</span><span class="special">&gt;</span>
506</pre>
507<p>
508          </p>
509<p>
510            Some using declarations:
511          </p>
512<p>
513</p>
514<pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">karma</span><span class="special">::</span><span class="identifier">big_word</span><span class="special">;</span>
515<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">karma</span><span class="special">::</span><span class="identifier">big_dword</span><span class="special">;</span>
516<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">karma</span><span class="special">::</span><span class="identifier">big_qword</span><span class="special">;</span>
517</pre>
518<p>
519          </p>
520<p>
521            Basic usage of the big binary generators:
522          </p>
523<p>
524</p>
525<pre class="programlisting"><span class="identifier">test_binary_generator</span><span class="special">(</span><span class="string">"\x02\x01"</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="identifier">big_word</span><span class="special">(</span><span class="number">0x0201</span><span class="special">));</span>
526<span class="identifier">test_binary_generator</span><span class="special">(</span><span class="string">"\x04\x03\x02\x01"</span><span class="special">,</span> <span class="number">4</span><span class="special">,</span> <span class="identifier">big_dword</span><span class="special">(</span><span class="number">0x04030201</span><span class="special">));</span>
527<span class="identifier">test_binary_generator</span><span class="special">(</span><span class="string">"\x08\x07\x06\x05\x04\x03\x02\x01"</span><span class="special">,</span> <span class="number">8</span><span class="special">,</span> <span class="identifier">big_qword</span><span class="special">(</span><span class="number">0</span><span class="identifier">x0807060504030201LL</span><span class="special">));</span>
528
529<span class="identifier">test_binary_generator_attr</span><span class="special">(</span><span class="string">"\x02\x01"</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="identifier">big_word</span><span class="special">,</span> <span class="number">0x0201</span><span class="special">);</span>
530<span class="identifier">test_binary_generator_attr</span><span class="special">(</span><span class="string">"\x04\x03\x02\x01"</span><span class="special">,</span> <span class="number">4</span><span class="special">,</span> <span class="identifier">big_dword</span><span class="special">,</span> <span class="number">0x04030201</span><span class="special">);</span>
531<span class="identifier">test_binary_generator_attr</span><span class="special">(</span><span class="string">"\x08\x07\x06\x05\x04\x03\x02\x01"</span><span class="special">,</span> <span class="number">8</span><span class="special">,</span> <span class="identifier">big_qword</span><span class="special">,</span> <span class="number">0</span><span class="identifier">x0807060504030201LL</span><span class="special">);</span>
532</pre>
533<p>
534          </p>
535</div>
536<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
537<td align="left"></td>
538<td align="right"><div class="copyright-footer">Copyright © 2001-2011 Joel de Guzman, Hartmut Kaiser<p>
539        Distributed under the Boost Software License, Version 1.0. (See accompanying
540        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>)
541      </p>
542</div></td>
543</tr></table>
544<hr>
545<div class="spirit-nav">
546<a accesskey="p" href="binary_little.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../binary.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="../char.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
547</div>
548</body>
549</html>
550