MCPcopy Create free account
hub / github.com/ElementsProject/elements / BytesToBits

Function BytesToBits

src/merkleblock.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21std::vector<bool> BytesToBits(const std::vector<unsigned char>& bytes)
22{
23 std::vector<bool> ret(bytes.size() * 8);
24 for (unsigned int p = 0; p < ret.size(); p++) {
25 ret[p] = (bytes[p / 8] & (1 << (p % 8))) != 0;
26 }
27 return ret;
28}
29
30CMerkleBlock::CMerkleBlock(const CBlock& block, CBloomFilter* filter, const std::set<uint256>* txids)
31{

Callers 4

SERIALIZE_METHODSMethod · 0.85
FUZZ_TARGETFunction · 0.85
SERIALIZE_METHODSMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by 2

FUZZ_TARGETFunction · 0.68