size_t to uint32_t for cross platform