diff --git a/src/Serializer.h b/src/Serializer.h index 95fbbaa02e..e747a4fd57 100644 --- a/src/Serializer.h +++ b/src/Serializer.h @@ -103,6 +103,7 @@ public: // low-level VL length encode/decode functions static std::vector encodeVL(int length); + static int lengthVL(int length) { return length + encodeLengthLength(length); } static int encodeLengthLength(int length); // length to encode length static int decodeLengthLength(int b1); static int decodeVLLength(int b1);