This could be implemented very similarly to Python's API https://docs.python.org/3/library/stdtypes.html#bytes https://docs.python.org/3/library/stdtypes.html#bytearray
This could be implemented very similarly to Python's API
https://docs.python.org/3/library/stdtypes.html#bytes
https://docs.python.org/3/library/stdtypes.html#bytearray