reduce allocations while reading chunks data

This commit is contained in:
MihailRis 2025-12-06 00:58:13 +03:00
parent 21f7390265
commit 9dc9441902
12 changed files with 93 additions and 43 deletions

View file

@ -88,7 +88,7 @@ public:
}
std::unique_ptr<ubyte[]> encode() const;
static std::unique_ptr<light_t[]> decode(const ubyte* buffer);
void decode(const ubyte* src);
static inline light_t SUN_LIGHT_ONLY = combine(0U, 0U, 0U, 15U);
};