If I have unpacked binary data
1700885369 # translates to 'easy'
How can I get back to a byte array (most preferably without importing anything)? Like Python's struct.Struct(format).pack:
>>> import struct
>>> s = struct.Struct('>1I') # a big-endian, two-byte, unsigned int
>>> s.pack(1700885369)
b'easy' # bytearray([101, 97, 115, 121])