Package com.google.debugging.sourcemap
Class Base64VLQ
java.lang.Object
com.google.debugging.sourcemap.Base64VLQ
We encode our variable length numbers as base64 encoded strings with the least significant digit
coming first. Each base64 digit encodes a 5-bit value (0-31) and a continuation bit. Signed
values can be represented by using the least significant bit of the value as the sign bit.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
A simple interface for advancing through a sequence of characters, that communicates that advance back to the source. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Decodes the next VLQValue from the provided CharIterator.static void
encode
(Appendable out, int value) Writes a VLQ encoded value to the provide appendable.
-
Method Details
-
encode
Writes a VLQ encoded value to the provide appendable.- Throws:
IOException
-
decode
Decodes the next VLQValue from the provided CharIterator.
-