.
This commit is contained in:
@@ -15,6 +15,11 @@ public:
|
||||
void add_float(uint32_t addr, float value);
|
||||
void add_string(uint32_t addr, std::string const& str);
|
||||
|
||||
void append_byte(uint32_t addr, uint8_t byte) { add_byte(data_.size(), byte); }
|
||||
void append_int(uint32_t addr, int32_t value) { add_int(data_.size(), value); }
|
||||
void append_float(uint32_t addr, float value) { add_float(data_.size(), value); }
|
||||
void append_string(uint32_t addr, std::string const& str) { add_string(data_.size(), str); }
|
||||
|
||||
[[nodiscard]] uint8_t get_byte(uint32_t addr) const;
|
||||
[[nodiscard]] std::pair<int32_t, size_t> get_int(uint32_t addr) const;
|
||||
[[nodiscard]] std::pair<float, size_t> get_float(uint32_t addr) const;
|
||||
|
||||
Reference in New Issue
Block a user