mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Rename BroString to zeek::String
This commit is contained in:
parent
a2bc42dd93
commit
736a3f53d4
58 changed files with 346 additions and 339 deletions
|
@ -317,7 +317,7 @@ char* CompositeHash::SingleValHash(bool type_check, char* kp0,
|
|||
{
|
||||
// Align to int for the length field.
|
||||
int* kp = AlignAndPadType<int>(kp0);
|
||||
const zeek::BroString* sval = v->AsString();
|
||||
const zeek::String* sval = v->AsString();
|
||||
|
||||
*kp = sval->Len(); // so we can recover the value
|
||||
|
||||
|
@ -1047,7 +1047,7 @@ const char* CompositeHash::RecoverOneVal(
|
|||
kp1 = reinterpret_cast<const char*>(kp+1);
|
||||
}
|
||||
|
||||
*pval = zeek::make_intrusive<zeek::StringVal>(new zeek::BroString((const zeek::byte_vec) kp1, n, true));
|
||||
*pval = zeek::make_intrusive<zeek::StringVal>(new zeek::String((const zeek::byte_vec) kp1, n, true));
|
||||
kp1 += n;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue