def get_header_class()

in pyignite/datatypes/complex.py [0:0]


    def get_header_class(cls):
        if not cls._header_class:
            cls._header_class = type(
                cls.__name__,
                (ctypes.LittleEndianStructure,),
                {
                    '_pack_': 1,
                    '_fields_': [
                        ('type_code', ctypes.c_byte),
                        ('version', ctypes.c_byte),
                        ('flags', ctypes.c_short),
                        ('type_id', ctypes.c_int),
                        ('hash_code', ctypes.c_int),
                        ('length', ctypes.c_int),
                        ('schema_id', ctypes.c_int),
                        ('schema_offset', ctypes.c_int),
                    ],
                }
            )
        return cls._header_class