Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/axmolengine/axmol
/ clampByte
Method
clampByte
core/base/etc2.cpp:448–448 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
446
} u;
447
448
static unsigned char clampByte(int value) { return static_cast<unsigned char>(gl::clamp(value, 0, 255)); }
449
450
static signed char clampSByte(int value) { return static_cast<signed char>(gl::clamp(value, -128, 127)); }
451
Callers
nothing calls this directly
Calls
1
clamp
Function · 0.50
Tested by
no test coverage detected