Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tripwire/tripwire-open-source
/ Crop
Function
Crop
src/cryptlib/misc.cpp:65–71 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
63
}
64
65
unsigned long Crop(unsigned long value, int size)
66
{
67
if (size < 8*(int)sizeof(value))
68
return (value & ((1L << size) - 1));
69
else
70
return value;
71
}
72
Callers
3
ConvertToLong
Method · 0.85
Randomize
Method · 0.85
GetLong
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected