From cf88b4ed51f6c87127a4100dfad8209aea8cc40a Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 30 May 2012 16:03:33 -0700 Subject: [PATCH] Add Serializer::lengthVL to get the total length of a VL --- src/Serializer.h | 1 + 1 file changed, 1 insertion(+) 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);