Does anyone have any suggestions on how to convert data (mostly strings) into their formatted byte representation?
For example, if I enter the string “01” I’d like to get 00 01 or if I enter “0001” I’d like to get 00 00 00 01
I’ve tried using ByteBuffer but the output is always 8 bits long, i.e. 01 => 00 00 00 01
I have never seen this representation before as it sounds pretty inefficient. However what you can do is
prints