def _serialize_to_wxf(self, stream, context): stream.write(self.wxf_type) context.add_part() stream.write(float_to_bytes(self.value))
def serialize_float(self, number): yield WXF_CONSTANTS.Real64 yield float_to_bytes(number)