size_t -> uint32_t for heap