Class Base64VLQ

java.lang.Object
de.inetsoftware.jwebassembly.sourcemap.Base64VLQ

class Base64VLQ extends Object
Encode an integer value as Base64VLQ
  • Field Details

  • Constructor Details

    • Base64VLQ

      private Base64VLQ()
      no instance
  • Method Details

    • toVLQSigned

      private static int toVLQSigned(int value)
      Move the signet bit from the first position (two-complement value) to the last bit position. examples: 1 -> 2; -1 -> 3; 2 -> 4; -2 -> 5
      Parameters:
      value - two-complement value
      Returns:
      converted value
    • appendBase64VLQ

      static void appendBase64VLQ(Appendable out, int value) throws IOException
      Writes a VLQ encoded value to the provide target.
      Parameters:
      out - the target
      value - the value
      Throws:
      IOException - if any I/O error occur