程序包 org.tio.utils

类 HashUtils

java.lang.Object
org.tio.utils.HashUtils

public class HashUtils extends Object
hash工具类,仅供tio内部使用,外部请勿使用
作者:
tanyaowu
  • 构造器详细资料

    • HashUtils

      public HashUtils()
  • 方法详细资料

    • hashFNV1

      public static int hashFNV1(byte[] src)
      参数:
      src -
      返回:
    • hashFNV1

      public static int hashFNV1(byte[] src, int start, int len)
      FNV1算法
      参数:
      src -
      start -
      len -
      返回:
    • hash31

      public static int hash31(byte[] src, int start, int len)
      每位乘以31相加
      参数:
      src -
      start -
      len -
      返回: