m2f

Transform kotlin PMCmdWeightUnit into bytearray with encoded flatbuffer data