Allows manipulating the fraction, exponent, and sign parts of a double separately. The definition is:
Allows manipulating the fraction, exponent, and sign parts of a float separately. The definition is:
Byte order endianness.
Takes an integral value, converts it to the given endianness, and appends it to the given range of ubytes (using put) as a sequence of T.sizeof ubytes starting at index. hasSlicing!R must be true.
Converts the given value from big endian to the native endianness and returns it. The value is given as a ubyte[n] where n is the size of the target type. You must give the target type as a template argument, because there are multiple types with the same size and so the type of the argument is not enough to determine the return type.
Allows creating bitfields inside structs, classes and unions.
Range that iterates the indices of the set bits in value. Index 0 corresponds to the least significant bit. For signed integers, the highest index corresponds to the sign bit.
Converts the given value from little endian to the native endianness and returns it. The value is given as a ubyte[n] where n is the size of the target type. You must give the target type as a template argument, because there are multiple types with the same size and so the type of the argument is not enough to determine the return type.
Converts the given value from the native endianness to big endian and returns it as a ubyte[n] where n is the size of the given type.
Converts the given value from the native endianness to little endian and returns it as a ubyte[n] where n is the size of the given type.
Takes a range of ubytes and converts the first T.sizeof bytes to T. The value returned is converted from the given endianness to the native endianness. The range is not consumed.
Takes a range of ubytes and converts the first T.sizeof bytes to T. The value returned is converted from the given endianness to the native endianness. The T.sizeof bytes which are read are consumed from the range.
Swaps the endianness of the given integral value or character.
Takes an integral value, converts it to the given endianness, and writes it to the given range of ubytes as a sequence of T.sizeof ubytes starting at index. hasSlicing!R must be true.
This string mixin generator allows one to create tagged class reference inside structs and classes.
This string mixin generator allows one to create tagged pointers inside structs and classes.
Bit-level manipulation facilities.