Example #1
0
    def serialize_numeric_array(self, data, shape, wl_type):

        payload = concatenate_bytes(
            chain((WXF_VERSION, WXF_HEADER_SEPARATOR),
                  numeric_array_to_wxf(data, shape, wl_type)))

        return self.serialize_function(
            self.serialize_symbol(b'BinaryDeserialize'),
            (self.serialize_bytes(payload, as_byte_array=True), ))
Example #2
0
 def serialize_numeric_array(self, data, dimensions, wl_type):
     return numeric_array_to_wxf(data, dimensions, wl_type)