mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Clarifying onwership rules for BroString constructors.
This commit is contained in:
parent
4fab70ecce
commit
c39215bf5d
1 changed files with 5 additions and 1 deletions
|
@ -34,11 +34,15 @@ public:
|
|||
typedef IdxVec::iterator IdxVecIt;
|
||||
typedef IdxVec::const_iterator IdxVecCIt;
|
||||
|
||||
BroString(int arg_final_NUL, byte_vec str, int arg_n);
|
||||
// Constructors creating internal copies of the data passed in.
|
||||
BroString(const u_char* str, int arg_n, int add_NUL);
|
||||
BroString(const char* str);
|
||||
BroString(const string& str);
|
||||
BroString(const BroString& bs);
|
||||
|
||||
// Constructor that takes owernship of the vector passed in.
|
||||
BroString(int arg_final_NUL, byte_vec str, int arg_n);
|
||||
|
||||
BroString();
|
||||
~BroString() { Reset(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue