toByteString package:bitwise
Copy to a ByteString. The most significant bits of the last byte are
padded with 0 unless the array was a multiple of 8 bits in size.
Copy to a ByteString. The most significant bits of the last byte are
padded with 0 unless the array was a multiple of 8 bits in size.