added some class accessors/set-ers

This commit is contained in:
Vern Paxson 2023-06-16 15:09:30 -07:00 committed by Arne Welzel
parent 8389fc85d7
commit 1505fd4aa1
4 changed files with 23 additions and 2 deletions

View file

@ -53,6 +53,13 @@ public:
*/
Frame(int size, const ScriptFunc* func, const zeek::Args* fn_args);
/**
* Returns the size of the frame.
*
* @return the number of elements in the frame.
*/
int FrameSize() const { return size; }
/**
* @param n the index to get.
* @return the value at index *n* of the underlying array.