Reorder StringNode's members to reduce code size

This commit is contained in:
Benoit Blanchon
2023-10-09 14:55:49 +02:00
parent 7e6b89d21f
commit 26b2ff4c0f

View File

@ -22,8 +22,8 @@ struct StringNode {
using length_type = uint_t<ARDUINOJSON_STRING_LENGTH_SIZE * 8>::type;
struct StringNode* next;
length_type length;
references_type references;
length_type length;
char data[1];
static constexpr size_t maxLength = numeric_limits<length_type>::highest();