def _write_array_fnc(self, val, item_write_fnc):
        _len = len(val) if val is not None else NULL_ARRAY_LENGTH
        self.write_int(_len)
        if _len > 0:
            for item in val:
                item_write_fnc(item)
dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/serialization/output.py/_ObjectDataOutput._write_array_fnc/original