Remove zeek::Span and use std::span instead

This commit is contained in:
Dominik Charousset 2025-07-24 20:25:51 +02:00
parent 941ea4282b
commit 690a2a1122
33 changed files with 125 additions and 238 deletions

View file

@ -2,6 +2,8 @@
#include "zeek/packet_analysis/Manager.h"
#include <span>
#include "zeek/Event.h"
#include "zeek/RunState.h"
#include "zeek/Stats.h"
@ -251,8 +253,8 @@ void Manager::ReportUnknownProtocol(const std::string& analyzer, uint32_t protoc
}
}
std::vector<zeek::Span<const uint8_t>> Manager::GetAnalyzerData(const AnalyzerPtr& analyzer) {
std::vector<zeek::Span<const uint8_t>> result;
std::vector<std::span<const uint8_t>> Manager::GetAnalyzerData(const AnalyzerPtr& analyzer) {
std::vector<std::span<const uint8_t>> result;
for ( const auto [sa, span] : analyzer_stack ) {
if ( sa == analyzer.get() )
result.push_back(span);