Is there any function equivalent to Python\'s struct.pack in Java that allows me to pack and unpack values like this?
struct.pack
pump_on = struct.pack(\"II
Closest feature in core Java is Serialization. It converts object into byte sequence and back.