MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / SetByte

Method SetByte

src/cryptlib/integer.cpp:1252–1257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250}
1251
1252void Integer::SetByte(unsigned int n, byte value)
1253{
1254 reg.CleanGrow(RoundupSize(bytesToWords(n+1)));
1255 reg[n/WORD_SIZE] &= ~(word(0xff) << 8*(n%WORD_SIZE));
1256 reg[n/WORD_SIZE] |= (word(value) << 8*(n%WORD_SIZE));
1257}
1258
1259Integer Integer::operator-() const
1260{

Callers

nothing calls this directly

Calls 3

RoundupSizeFunction · 0.85
bytesToWordsFunction · 0.85
CleanGrowMethod · 0.80

Tested by

no test coverage detected