MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / FitsWindowsInt

Function FitsWindowsInt

src/OSTPlatform/Encoding.cpp:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace {
11
12bool FitsWindowsInt(size_t size, const char* operation) {
13 if (size <= static_cast<size_t>((std::numeric_limits<int>::max)())) return true;
14 OSTP_LOG_DEBUG("{}: input is too large ({} bytes/chars)", operation, size);
15 return false;
16}
17
18} // namespace
19

Callers 2

WideToUtf8Function · 0.85
Utf8ToWideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected