Add Serializer::lengthVL to get the total length of a VL

This commit is contained in:
JoelKatz
2012-05-30 16:03:33 -07:00
parent ece130d375
commit cf88b4ed51

View File

@@ -103,6 +103,7 @@ public:
// low-level VL length encode/decode functions
static std::vector<unsigned char> 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);