mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add StructMapper.setChars, getChars
This commit is contained in:
parent
c67b867a31
commit
b34fddbe94
3 changed files with 29 additions and 1 deletions
|
|
@ -57,9 +57,11 @@ namespace data {
|
|||
|
||||
integer_t getInteger(const ubyte* src, const std::string& name, int index=0) const;
|
||||
number_t getNumber(const ubyte* src, const std::string& name, int index=0) const;
|
||||
std::string_view getChars(const ubyte* src, const std::string& name) const;
|
||||
|
||||
void setInteger(ubyte* dst, integer_t value, const std::string& name, int index=0);
|
||||
void setNumber(ubyte* dst, number_t value, const std::string& name, int index=0);
|
||||
void setChars(ubyte* dst, std::string_view value, const std::string& name);
|
||||
|
||||
int size() const {
|
||||
return totalSize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue