xtd 0.2.0
Loading...
Searching...
No Matches
bit_converter_endianness.cpp

Shows how to use bit_converter::endianness method.

#include <xtd/bit_converter>
#include <xtd/console>
#include <xtd/startup>
using namespace xtd;
namespace bit_converter_endianness_example {
class program {
public:
// The main entry point for the application.
static auto main() {
"This example of the bit_converter::endianness field "
"generates \nthe following output when run on "
"x86-class computers.\n");
console::write_line("endianness: {}",
}
};
}
startup_(bit_converter_endianness_example::program::main);
/*
This example of the bit_converter::endianness field generates
the following output when run on x86-class computers.
endianness: little
*/
static constexpr endian endianness
Indicates the xtd::byte order ("endianness") in which data is stored in this computer architecture.
Definition bit_converter.hpp:90
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:167
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8