Nobody uses uint8_t* data ptr, why cdef here?
uint8_t* data
https://github.com/ray-project/ray/blob/f336f51d2f51a4441b11feebf89ca45a47ff5e39/python/ray/includes/serialization.pxi#L200