Class Base64VLQ

java.lang.Object
com.google.debugging.sourcemap.Base64VLQ

public final class Base64VLQ extends Object
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.
  • Method Details

    • encode

      public static void encode(Appendable out, int value) throws IOException
      Writes a VLQ encoded value to the provide appendable.
      Throws:
      IOException
    • decode

      public static int decode(Base64VLQ.CharIterator in)
      Decodes the next VLQValue from the provided CharIterator.