Class Base64Lite
java.lang.Object
ghidra.features.bsim.query.elastic.Base64Lite
Lightweight Base64 encoder for writing chars directly to StringBuilders and giving
 direct access to the encode and decode arrays
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic longdecodeLongBase64(String val) Decode (up to 11) base64 characters to produce a longstatic StringencodeLongBase64(long val) Encode a long value in base64 to a String.static voidencodeLongBase64(StringBuilder buf, long val) Encode a long value in base64 to a StringBuilder "stream".static voidencodeLongBase64Padded(StringBuilder buf, long val) Encode a long value in base64 to the StringBuilder "stream" padding out with 'A' characters so that exactly 11 characters are always written to the stream 
- 
Field Details
- 
encode
public static final char[] encode - 
decode
public static final int[] decode 
 - 
 - 
Constructor Details
- 
Base64Lite
public Base64Lite() 
 - 
 - 
Method Details
- 
encodeLongBase64
Encode a long value in base64 to a StringBuilder "stream". Omit initial 'A' characters if the high-order bits of the value are zero- Parameters:
 buf- is the buffer to write toval- is the long value to encode
 - 
encodeLongBase64Padded
Encode a long value in base64 to the StringBuilder "stream" padding out with 'A' characters so that exactly 11 characters are always written to the stream- Parameters:
 buf- is the buffer to write toval- is the long value to encode
 - 
encodeLongBase64
Encode a long value in base64 to a String. Omit initial 'A' characters if the high-order bits of the value are zero- Parameters:
 val- is the long to encode- Returns:
 - the encoded String
 
 - 
decodeLongBase64
Decode (up to 11) base64 characters to produce a long- Parameters:
 val- is the String to decode- Returns:
 - the decode long
 
 
 -