|
BDE 4.14.0 Production release
|
Provide an enumeration of the set of possible byte orders.
enumThis component provides a namespace for the enum type bdlde::ByteOrder::Enum, which enumerates the set of possible byte orders.
This section illustrates intended use of this component.
The following snippets of code provide a simple illustration of bdlde::ByteOrder usage.
First, we create a variable value of type bdlde::ByteOrder::Enum and initialize it with the enumerator value bdlde::ByteOrder::e_LITTLE_ENDIAN:
Next, we store a pointer to its ASCII representation in a variable asciiValue of type const char *:
Then, we try one of the aliased identifiers, and we get a string corresponding to the value it is aliased to:
Finally, we print value to bsl::cout:
This statement produces the following output on stdout: