Marshalling for TinyMesh binary protocol