mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Add ODesc::Size() that returns size_t, deprecate ODesc::Len()
This commit is contained in:
parent
6e2a18ce4f
commit
7a5209855f
12 changed files with 47 additions and 45 deletions
|
@ -240,10 +240,7 @@ void Ascii::InitConfigOptions() {
|
|||
|
||||
meta_prefix.assign((const char*)BifConst::LogAscii::meta_prefix->Bytes(), BifConst::LogAscii::meta_prefix->Len());
|
||||
|
||||
ODesc tsfmt;
|
||||
BifConst::LogAscii::json_timestamps->Describe(&tsfmt);
|
||||
json_timestamps.assign((const char*)tsfmt.Bytes(), tsfmt.Len());
|
||||
|
||||
json_timestamps = zeek::obj_desc_short(BifConst::LogAscii::json_timestamps);
|
||||
json_include_unset_fields = BifConst::LogAscii::json_include_unset_fields;
|
||||
|
||||
gzip_file_extension.assign((const char*)BifConst::LogAscii::gzip_file_extension->Bytes(),
|
||||
|
@ -591,7 +588,7 @@ bool Ascii::DoWrite(int num_fields, const threading::Field* const* fields, threa
|
|||
desc.AddRaw("\n", 1);
|
||||
|
||||
const char* bytes = (const char*)desc.Bytes();
|
||||
int len = desc.Len();
|
||||
size_t len = desc.Size();
|
||||
|
||||
if ( strncmp(bytes, meta_prefix.data(), meta_prefix.size()) == 0 ) {
|
||||
// It would so escape the first character.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue