mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add Serializer::lengthVL to get the total length of a VL
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user