mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Move Type types to zeek namespace
This commit is contained in:
parent
4a1b39a2be
commit
ed13972924
120 changed files with 2094 additions and 1934 deletions
|
@ -12,7 +12,7 @@ class HashKey;
|
|||
|
||||
class CompositeHash {
|
||||
public:
|
||||
explicit CompositeHash(IntrusivePtr<TypeList> composite_type);
|
||||
explicit CompositeHash(IntrusivePtr<zeek::TypeList> composite_type);
|
||||
~CompositeHash();
|
||||
|
||||
// Compute the hash corresponding to the given index val,
|
||||
|
@ -37,7 +37,7 @@ protected:
|
|||
|
||||
// Computes the piece of the hash for Val*, returning the new kp.
|
||||
// Used as a helper for ComputeHash in the non-singleton case.
|
||||
char* SingleValHash(bool type_check, char* kp, BroType* bt, Val* v,
|
||||
char* SingleValHash(bool type_check, char* kp, zeek::BroType* bt, Val* v,
|
||||
bool optional) const;
|
||||
|
||||
// Recovers just one Val of possibly many; called from RecoverVals.
|
||||
|
@ -46,7 +46,7 @@ protected:
|
|||
// upon errors, so there is no return value for invalid input.
|
||||
const char* RecoverOneVal(const HashKey& k,
|
||||
const char* kp, const char* const k_end,
|
||||
BroType* t, IntrusivePtr<Val>* pval, bool optional) const;
|
||||
zeek::BroType* t, IntrusivePtr<Val>* pval, bool optional) const;
|
||||
|
||||
// Rounds the given pointer up to the nearest multiple of the
|
||||
// given size, if not already a multiple.
|
||||
|
@ -85,11 +85,11 @@ protected:
|
|||
int ComputeKeySize(const Val* v, bool type_check,
|
||||
bool calc_static_size) const;
|
||||
|
||||
int SingleTypeKeySize(BroType*, const Val*,
|
||||
int SingleTypeKeySize(zeek::BroType*, const Val*,
|
||||
bool type_check, int sz, bool optional,
|
||||
bool calc_static_size) const;
|
||||
|
||||
IntrusivePtr<TypeList> type;
|
||||
IntrusivePtr<zeek::TypeList> type;
|
||||
char* key; // space for composite key
|
||||
int size;
|
||||
bool is_singleton; // if just one type in index
|
||||
|
@ -97,5 +97,5 @@ protected:
|
|||
// If one type, but not normal "singleton", e.g. record.
|
||||
bool is_complex_type;
|
||||
|
||||
InternalTypeTag singleton_tag;
|
||||
zeek::InternalTypeTag singleton_tag;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue