mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
Move bro_broker code to zeek::Broker namespace
This commit is contained in:
parent
cba1bc18a5
commit
f1cfd5aa2b
18 changed files with 420 additions and 329 deletions
|
@ -429,7 +429,7 @@ broker::expected<broker::data> TopkVal::DoSerialize() const
|
|||
{
|
||||
Element* element = *eit;
|
||||
d.emplace_back(element->epsilon);
|
||||
auto v = bro_broker::val_to_data(element->value.get());
|
||||
auto v = zeek::Broker::detail::val_to_data(element->value.get());
|
||||
if ( ! v )
|
||||
return broker::ec::invalid_data;
|
||||
|
||||
|
@ -494,7 +494,7 @@ bool TopkVal::DoUnserialize(const broker::data& data)
|
|||
for ( uint64_t j = 0; j < *elements_count; j++ )
|
||||
{
|
||||
auto epsilon = caf::get_if<uint64_t>(&(*v)[idx++]);
|
||||
auto val = bro_broker::data_to_val((*v)[idx++], type.get());
|
||||
auto val = zeek::Broker::detail::data_to_val((*v)[idx++], type.get());
|
||||
|
||||
if ( ! (epsilon && val) )
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue