mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Type/RecordType: Make table returned by GetRecordFieldsVal() ordered
Seems only reasonable to provide that guarantee as pointed out in #4674.
This commit is contained in:
parent
db018253fe
commit
9f3a3b423f
9 changed files with 54 additions and 43 deletions
|
@ -697,7 +697,10 @@ public:
|
|||
/**
|
||||
* Returns a "record_field_table" value for introspection purposes.
|
||||
* @param rv an optional record value, if given the values of
|
||||
* all fields will be provided in the returned table.
|
||||
* all fields will be provided in the returned table. The table
|
||||
* is initialized with the &ordered attribute such that iterating over
|
||||
* the table will yield entries for fields in the same order as they
|
||||
* are kept in the record type types list.
|
||||
*/
|
||||
TableValPtr GetRecordFieldsVal(const RecordVal* rv = nullptr) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue