java.lang.Object
com.jackmeng.halcyoninae.cloudspin.lib.base_83

public final class base_83 extends Object
Base 83 Helper Class
Since:
1.0
Author:
Jack Meng
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final char[]
    A Char Table to look up.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    Decodes from Base 83
    static void
    decodeAC(String str, double rMv, double[] color)
     
    static void
    decodeDC(String str, double[] colors)
     
    static String
    encode(long val, int length, char[] buff, int offset)
    Encodes with Base 83.
    static long
    encodeAC(double[] val, double m)
     
    static long
    encodeDC(double[] val)
     
    static int
    find(char c)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TABLE

      public static final char[] TABLE
      A Char Table to look up.
  • Constructor Details

    • base_83

      private base_83()
  • Method Details

    • encode

      public static String encode(long val, int length, char[] buff, int offset)
      Encodes with Base 83.
      Parameters:
      val - The value to encode
      length - The length of the value
      buff - 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

      public static int decode(String str)
      Decodes from Base 83
      Parameters:
      str - An Encoded String
      Returns:
      The decoded string from base 83
    • decodeAC

      public static void decodeAC(String str, double rMv, double[] color)
      Parameters:
      str -
      rMv -
      color -
    • decodeDC

      public static void decodeDC(String str, double[] colors)
      Parameters:
      str -
      colors -
    • find

      public static int find(char c)
      Parameters:
      c -
      Returns:
      int