40 ret.reserve(_topics.size());
41 for (
auto const& t: _topics)
49 ret.reserve(m_parts.size());
50 for (
auto const&
h: m_parts)
68 bool TopicFilter::matches(
Envelope const& _e)
const 72 for (
unsigned i = 0; i < t.size(); ++i)
74 for (
auto et: _e.
topic())
88 TopicFilter::TopicFilter(
RLP const& _r)
90 for (
RLP const& i: _r)
102 for (
auto const& i: t)
111 ret.reserve(m_parts.size());
112 for (
auto const&
h: m_parts)
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::vector< AbridgedTopic > AbridgedTopics
bytes const & out() const
Read the byte stream.
std::hash for asio::adress
AbridgedTopics const & topic() const
std::vector< byte > bytes
Fixed-size raw-byte array container type, with an API optimised for storing hashes.
AbridgedTopic abridge(Topic const &_topic)
std::vector< std::pair< AbridgedTopic, AbridgedTopic >> TopicMask
bool sha3(bytesConstRef _input, bytesRef o_output)
Calculate SHA3-256 hash of the given input and load it into the given output.
FixedHash< 4 > AbridgedTopic
Class for writing to an RLP bytestream.
Class for interpreting Recursive Linear-Prefix Data.
LogBloom bloom(LogEntries const &_logs)