com.caucho.util
Class Crc64

java.lang.Object
  extended by com.caucho.util.Crc64

public class Crc64
extends java.lang.Object

Crc64 hash


Constructor Summary
Crc64()
           
 
Method Summary
static long generate(long crc, byte ch)
          Calculates the next crc value.
static long generate(long crc, byte[] buffer, int offset, int len)
          Calculates CRC from a char buffer
static long generate(long crc, char[] buffer, int offset, int len)
          Calculates CRC from a char buffer
static long generate(long crc, long value)
          Calculates CRC from a long
static long generate(long crc, java.lang.String value)
          Calculates CRC from a string.
static long generate(java.lang.String value)
          Calculates CRC from a string.
static long next(long crc, int ch)
          Calculates the next crc value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Crc64

public Crc64()
Method Detail

generate

public static long generate(java.lang.String value)
Calculates CRC from a string.


generate

public static long generate(long crc,
                            java.lang.String value)
Calculates CRC from a string.


generate

public static long generate(long crc,
                            char[] buffer,
                            int offset,
                            int len)
Calculates CRC from a char buffer


generate

public static long generate(long crc,
                            byte[] buffer,
                            int offset,
                            int len)
Calculates CRC from a char buffer


generate

public static long generate(long crc,
                            long value)
Calculates CRC from a long


generate

public static long generate(long crc,
                            byte ch)
Calculates the next crc value.


next

public static long next(long crc,
                        int ch)
Calculates the next crc value.