mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Reformat the world
This commit is contained in:
parent
194cb24547
commit
b2f171ec69
714 changed files with 35149 additions and 35203 deletions
|
@ -2,10 +2,10 @@
|
|||
|
||||
#include <cstring>
|
||||
|
||||
namespace zeek::session::detail {
|
||||
namespace zeek::session::detail
|
||||
{
|
||||
|
||||
Key::Key(const void* session, size_t size, size_t type, bool copy) :
|
||||
size(size), type(type)
|
||||
Key::Key(const void* session, size_t size, size_t type, bool copy) : size(size), type(type)
|
||||
{
|
||||
data = reinterpret_cast<const uint8_t*>(session);
|
||||
|
||||
|
@ -45,7 +45,7 @@ Key& Key::operator=(Key&& rhs)
|
|||
Key::~Key()
|
||||
{
|
||||
if ( copied )
|
||||
delete [] data;
|
||||
delete[] data;
|
||||
}
|
||||
|
||||
void Key::CopyData()
|
||||
|
@ -55,7 +55,7 @@ void Key::CopyData()
|
|||
|
||||
copied = true;
|
||||
|
||||
uint8_t *temp = new uint8_t[size];
|
||||
uint8_t* temp = new uint8_t[size];
|
||||
memcpy(temp, data, size);
|
||||
data = temp;
|
||||
}
|
||||
|
@ -80,4 +80,4 @@ bool Key::operator==(const Key& rhs) const
|
|||
return memcmp(data, rhs.data, size) == 0;
|
||||
}
|
||||
|
||||
} // namespace zeek::session::detail
|
||||
} // namespace zeek::session::detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue