The generators qword
and qword(qw)
are only available on platforms where the preprocessor constant BOOST_HAS_LONG_LONG is defined (i.e.
on platforms having native support for unsignedlonglong
(64 bit) integer types).

Semantics of an expression is defined only where it differs from, or
is not defined in PrimitiveGenerator.

Expression

Description

byte_

Output the binary representation of the least significant byte
of the mandatory attribute. This generator never fails (unless
the underlying output stream reports an error).

word

Output the binary representation of the least significant 16
bits of the mandatory attribute in native endian representation.
This generator never fails (unless the underlying output stream
reports an error).

dword

Output the binary representation of the least significant 32
bits of the mandatory attribute in native endian representation.
This generator never fails (unless the underlying output stream
reports an error).

qword

Output the binary representation of the least significant 64
bits of the mandatory attribute in native endian representation.
This generator never fails (unless the underlying output stream
reports an error).

byte_(b)

Output the binary representation of the least significant byte
of the immediate parameter. This generator never fails (unless
the underlying output stream reports an error).

word(w)

Output the binary representation of the least significant 16
bits of the immediate parameter in native endian representation.
This generator never fails (unless the underlying output stream
reports an error).

dword(dw)

Output the binary representation of the least significant 32
bits of the immediate parameter in native endian representation.
This generator never fails (unless the underlying output stream
reports an error).

qword(qw)

Output the binary representation of the least significant 64
bits of the immediate parameter in native endian representation.
This generator never fails (unless the underlying output stream
reports an error).

In addition to their usual attribute of type Attrib
all listed generators accept an instance of a boost::optional<Attrib> as well. If the boost::optional<> is initialized (holds a value)
the generators behave as if their attribute was an instance of Attrib and emit the value stored
in the boost::optional<>.
Otherwise the generators will fail.