mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Switch RecordVal::CoerceTo() to use IntrusivePtr
This commit is contained in:
parent
fcaade6e31
commit
cda4738407
6 changed files with 39 additions and 28 deletions
|
@ -11,7 +11,7 @@ module FileExtract;
|
|||
function FileExtract::__set_limit%(file_id: string, args: any, n: count%): bool
|
||||
%{
|
||||
using zeek::BifType::Record::Files::AnalyzerArgs;
|
||||
auto rv = args->AsRecordVal()->CoerceTo(AnalyzerArgs.get());
|
||||
auto rv = args->AsRecordVal()->CoerceTo(AnalyzerArgs);
|
||||
bool result = file_mgr->SetExtractionLimit(file_id->CheckString(), rv.get(), n);
|
||||
return val_mgr->Bool(result);
|
||||
%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue