Data.Byte
No module comment.
An integer from 0 to 255, which the compiler provides.
The low eight bits, total and explicitly lossy. The name is the warning.
Shifting happens in Int and the result is narrowed, so bits shifted off
the top are discarded. The shift amount is Int.shl's, so it panics outside
0..63 rather than masking.
The width-byte integer at at in bytes, for a width from 1 to 8:
least significant byte first for getLE, most significant first for
getBE. Narrower than 8 bytes it is unsigned; at 8 it fills an Int, so a
top bit set reads as a negative number. These work on anything indexed by
Int with Byte elements, Array Byte and Vec Byte among them, and
panic as indexing does if the bytes run past the end.
Write the low width bytes of n at at, in the order getLE and
getBE read them. The bits above them are dropped, as truncate drops
them, so a negative n writes its two's complement.