mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
InputReader can read Sets.
This commit is contained in:
parent
cde8153c18
commit
4a3c992325
6 changed files with 310 additions and 162 deletions
|
@ -81,16 +81,18 @@ struct LogMgr::Stream {
|
|||
bool LogField::Read(SerializationFormat* fmt)
|
||||
{
|
||||
int t;
|
||||
int it;
|
||||
|
||||
bool success = (fmt->Read(&name, "name") && fmt->Read(&t, "type"));
|
||||
bool success = (fmt->Read(&name, "name") && fmt->Read(&t, "type") && fmt->Read(&it, "set_type") );
|
||||
type = (TypeTag) t;
|
||||
set_type = (TypeTag) it;
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
bool LogField::Write(SerializationFormat* fmt) const
|
||||
{
|
||||
return (fmt->Write(name, "name") && fmt->Write((int)type, "type"));
|
||||
return (fmt->Write(name, "name") && fmt->Write((int)type, "type") && fmt->Write((int)set_type, "set_type"));
|
||||
}
|
||||
|
||||
LogVal::~LogVal()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue