mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
provide ZAM execution with direct access to ZVal elements
This commit is contained in:
parent
9f68002392
commit
51fee244c9
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,10 @@ using TypeValPtr = IntrusivePtr<TypeVal>;
|
|||
using ValPtr = IntrusivePtr<Val>;
|
||||
using VectorValPtr = IntrusivePtr<VectorVal>;
|
||||
|
||||
namespace detail {
|
||||
class ZBody;
|
||||
}
|
||||
|
||||
// Note that a ZVal by itself is ambiguous: it doesn't track its type.
|
||||
// This makes them consume less memory and cheaper to copy. It does
|
||||
// however require a separate way to determine the type. Generally
|
||||
|
@ -160,6 +164,7 @@ union ZVal {
|
|||
private:
|
||||
friend class RecordVal;
|
||||
friend class VectorVal;
|
||||
friend class zeek::detail::ZBody;
|
||||
|
||||
// Used for bool, int, enum.
|
||||
bro_int_t int_val;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue