add operator<< for packets (#14)
All checks were successful
Linux arm64 / Build (push) Successful in 16s

Reviewed-on: #14
Co-authored-by: Persson-dev <sim16.prib@gmail.com>
Co-committed-by: Persson-dev <sim16.prib@gmail.com>
This commit was merged in pull request #14.
This commit is contained in:
2025-03-13 15:20:37 +00:00
committed by Simon Pribylski
parent 205c09a338
commit 392fcb3d17
11 changed files with 147 additions and 60 deletions

View File

@@ -1,6 +1,5 @@
#pragma once
#include <sp/common/DataBuffer.h>
#include <sp/common/Templates.h>
namespace sp {
@@ -98,6 +97,19 @@ class Field {
StorageType m_Value;
};
template <typename T>
class PrintableField {
public:
PrintableField(const T& a_Value) : m_Value(a_Value) {}
const T& GetValue() const {
return m_Value;
}
private:
const T& m_Value;
};
namespace details {
template <typename... TFields>