Class Base64VLQ
- java.lang.Object
-
- de.inetsoftware.jwebassembly.sourcemap.Base64VLQ
-
class Base64VLQ extends java.lang.Object
Encode an integer value as Base64VLQ
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
BASE64_MAP
private static int
VLQ_BASE
private static int
VLQ_BASE_MASK
private static int
VLQ_BASE_SHIFT
private static int
VLQ_CONTINUATION_BIT
-
Constructor Summary
Constructors Modifier Constructor Description private
Base64VLQ()
no instance
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static void
appendBase64VLQ(java.lang.Appendable out, int value)
Writes a VLQ encoded value to the provide target.private static int
toVLQSigned(int value)
Move the signet bit from the first position (two-complement value) to the last bit position.
-
-
-
Field Detail
-
VLQ_BASE_SHIFT
private static final int VLQ_BASE_SHIFT
- See Also:
- Constant Field Values
-
VLQ_BASE
private static final int VLQ_BASE
- See Also:
- Constant Field Values
-
VLQ_BASE_MASK
private static final int VLQ_BASE_MASK
- See Also:
- Constant Field Values
-
VLQ_CONTINUATION_BIT
private static final int VLQ_CONTINUATION_BIT
- See Also:
- Constant Field Values
-
BASE64_MAP
private static final java.lang.String BASE64_MAP
- See Also:
- Constant Field Values
-
-
Method Detail
-
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(java.lang.Appendable out, int value) throws java.io.IOException
Writes a VLQ encoded value to the provide target.- Parameters:
out
- the targetvalue
- the value- Throws:
java.io.IOException
- if any I/O error occur
-
-