`static_cast<size_t>(size)`.

Side note: our convention is `const char*`, not `const char *`.