This commit is contained in:
2026-04-27 13:28:03 -05:00
parent 7bcf3b181b
commit 84fca2a615
5 changed files with 39 additions and 17 deletions

View File

@@ -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;