convert a integral type T into an array of bytes.
the buffer to write the bytes to
See Implementation
convert a integral type T into an array of bytes.