core :: Float :: double_byte_at
BinaryWriter
# Utility for `BinaryWriter`
private fun double_byte_at(index: Int, big_endian: Bool): Int `{
union {
unsigned char bytes[8];
double val;
uint64_t conv;
} u;
u.val = self;
if (big_endian)
u.conv = htobe64(u.conv);
else u.conv = htole64(u.conv);
return u.bytes[index];
`}
lib/binary/binary.nit:379,2--394,3