forked from bblanchon/ArduinoJson
1 parent
23b01a89b1
commit
c8517ee5b6
2 files changed
+2
-1
No files matched your search
@@ -47,7 +47,7 @@ class MsgPackSerializer : public Visitor<size_t> {
|
||||
size_t visitArray(const ArrayData& array) {
|
||||
size_t n = array.size();
|
||||
if (n < 0x10) {
|
||||
writeByte(uint8_t(0x90 + array.size()));
|
||||
writeByte(uint8_t(0x90 + n));
|
||||
} else if (n < 0x10000) {
|
||||
writeByte(0xDC);
|
||||
writeInteger(uint16_t(n));
|
||||
|
||||
Reference in new issue
Block a user