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

Method GetByte

src/cryptlib/integer.cpp:1244–1250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1242}
1243
1244byte Integer::GetByte(unsigned int n) const
1245{
1246 if (n/WORD_SIZE >= reg.size)
1247 return 0;
1248 else
1249 return byte(reg[n/WORD_SIZE] >> ((n%WORD_SIZE)*8));
1250}
1251
1252void Integer::SetByte(unsigned int n, byte value)
1253{

Callers 1

EncodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected