mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
BIT-466: add redef += support to vectors
This commit is contained in:
parent
95c72f3717
commit
bd24421734
8 changed files with 59 additions and 3 deletions
|
@ -1046,6 +1046,10 @@ public:
|
|||
bool AssignRepeat(unsigned int index, unsigned int how_many,
|
||||
Val* element);
|
||||
|
||||
// Add this value to the given value (if appropriate).
|
||||
// Returns true if succcessful.
|
||||
int AddTo(Val* v, int is_first_init) const override;
|
||||
|
||||
// Returns nil if no element was at that value.
|
||||
// Lookup does NOT grow the vector to this size.
|
||||
// The Val* variant assumes that the index Val* has been type-checked.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue