Simple binary serialization / packaging implementation