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

Shows how to use bit_converter::is_little_endian method.

#include <xtd/bit_converter>
#include <xtd/console>
#include <xtd/startup>
using namespace xtd;
namespace bit_converter_is_litte_endian_example {
class program {
public:
// The main entry point for the application.
static auto main() {
console::write_line(
"This example of the bit_converter::is_little_endian field "
"generates \nthe following output when run on "
"x86-class computers.\n");
console::write_line("is_little_endian: {}",
bit_converter::is_little_endian);
}
};
}
startup_(bit_converter_is_litte_endian_example::program::main);
/*
This example of the bit_converter::is_little_endian field generates
the following output when run on x86-class computers.
is_little_endian: true
*/
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.h:175
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10