Class Base64VLQ
java.lang.Object
de.inetsoftware.jwebassembly.sourcemap.Base64VLQ
Encode an integer value as Base64VLQ
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final int
private static final int
private static final int
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
appendBase64VLQ
(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 Details
-
VLQ_BASE_SHIFT
private static final int VLQ_BASE_SHIFT- See Also:
-
VLQ_BASE
private static final int VLQ_BASE- See Also:
-
VLQ_BASE_MASK
private static final int VLQ_BASE_MASK- See Also:
-
VLQ_CONTINUATION_BIT
private static final int VLQ_CONTINUATION_BIT- See Also:
-
BASE64_MAP
- See Also:
-
-
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
Writes a VLQ encoded value to the provide target.- Parameters:
out
- the targetvalue
- the value- Throws:
IOException
- if any I/O error occur
-