Class base_83
java.lang.Object
com.jackmeng.halcyoninae.cloudspin.lib.base_83
Base 83 Helper Class
- Since:
- 1.0
- Author:
- Jack Meng
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TABLE
public static final char[] TABLEA Char Table to look up.
-
-
Constructor Details
-
base_83
private base_83()
-
-
Method Details
-
encode
Encodes with Base 83.- Parameters:
val
- The value to encodelength
- The length of the valuebuff
- The buffer to write to (contains values)offset
- The offset to start writing at- Returns:
- The encoded value as a string
-
encodeDC
public static long encodeDC(double[] val) - Parameters:
val
-- Returns:
- long
-
encodeAC
public static long encodeAC(double[] val, double m) - Parameters:
val
-m
-- Returns:
- long
-
decode
Decodes from Base 83- Parameters:
str
- An Encoded String- Returns:
- The decoded string from base 83
-
decodeAC
- Parameters:
str
-rMv
-color
-
-
decodeDC
- Parameters:
str
-colors
-
-
find
public static int find(char c) - Parameters:
c
-- Returns:
- int
-