read/write

This commit is contained in:
2025-02-06 14:07:52 +01:00
parent 6bbc849076
commit f3e98543d7
5 changed files with 29 additions and 106 deletions

View File

@@ -8,8 +8,12 @@ template <typename ValueType>
class Field {
public:
// Provide an access to the stored value
ValueType& GetValue();
const ValueType& GetValue() const;
ValueType& GetValue() {
return m_Value;
}
const ValueType& GetValue() const {
return m_Value;
}
// Read (deserialise) and update internal value
void Read(DataBuffer& buffer) {