cityhash

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CityHash64

func CityHash64(data []byte) uint64

CityHash64 计算 CityHash64

func CityHash64String

func CityHash64String(s string) uint64

CityHash64String 计算字符串的 CityHash64

func SumHex

func SumHex(data []byte) string

SumHex 计算 CityHash64 并返回十六进制字符串

Types

type CityHasher

type CityHasher struct{}

CityHasher CityHash64 哈希器

func NewCityHasher

func NewCityHasher() *CityHasher

NewCityHasher 创建 CityHash64 哈希器

func (*CityHasher) Sum

func (h *CityHasher) Sum(data []byte) []byte

Sum 返回哈希值的字节切片

func (*CityHasher) Sum64

func (h *CityHasher) Sum64(data []byte) uint64

Sum64 计算 CityHash64 哈希值

func (*CityHasher) SumHex

func (h *CityHasher) SumHex(data []byte) string

SumHex 返回哈希值的十六进制字符串

func (*CityHasher) Type

func (h *CityHasher) Type() common.IntegrityType

Type 返回校验类型

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL