View source code
Display the source code in std/system.d from which this page was generated on
github.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
std.system.endian
- multiple declarations
- Variable endian
- Enum Endian
Variable endian
The endianness that the program was compiled for.
Declaration
immutable(Endian)
endian = cast(Endian)1;
Enum Endian
Byte order endianness.
The enum base type is
.
int
Enum members
Name | Description |
---|---|
bigEndian
|
Big endian byte order
|
littleEndian
|
Little endian byte order
|
Note
This is intended for cases where you need to deal with endianness at
runtime. If you're doing something which should compile differently
depending on whether you're compiling on a big endian
or little
endian
machine, then please use version(BigEndian)
and
version(LittleEndian)
.
See Also
Authors
Walter Bright and Jonathan M Davis