Commit 9ca343a5 authored by aligungr's avatar aligungr

Data plane performance improvements

parent 132d7a38
......@@ -21,6 +21,10 @@ class UniqueBuffer
{
}
explicit inline UniqueBuffer(size_t length) noexcept : m_data(new uint8_t[length]), m_size(0)
{
}
inline UniqueBuffer(uint8_t *data, size_t length) noexcept : m_data(data), m_size(length)
{
}
......@@ -58,7 +62,7 @@ class UniqueBuffer
return m_data;
}
[[nodiscard]] inline const uint8_t *data()
[[nodiscard]] inline uint8_t *data()
{
return m_data;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment