MCPcopy Create free account
hub / github.com/c3d/tao3D / SetByte

Method SetByte

libcryptopp/cryptopp/integer.cpp:2924–2929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2922}
2923
2924void Integer::SetByte(size_t n, byte value)
2925{
2926 reg.CleanGrow(RoundupSize(BytesToWords(n+1)));
2927 reg[n/WORD_SIZE] &= ~(word(0xff) << 8*(n%WORD_SIZE));
2928 reg[n/WORD_SIZE] |= (word(value) << 8*(n%WORD_SIZE));
2929}
2930
2931lword Integer::GetBits(size_t i, size_t n) const
2932{

Callers

nothing calls this directly

Calls 3

RoundupSizeFunction · 0.85
BytesToWordsFunction · 0.85
CleanGrowMethod · 0.80

Tested by

no test coverage detected