package cityhash102
import "github.com/ClickHouse/clickhouse-go/lib/cityhash102"
* COPY from https://github.com/zentures/cityhash/
NOTE: The code is modified to be compatible with CityHash128 used in ClickHouse
Index ¶
- func CityHash64(s []byte, length uint32) uint64
- func CityHash64WithSeed(s []byte, length uint32, seed uint64) uint64
- func CityHash64WithSeeds(s []byte, length uint32, seed0, seed1 uint64) uint64
- func New64() hash.Hash64
- type City64
- func (this *City64) BlockSize() int
- func (this *City64) Reset()
- func (this *City64) Size() int
- func (this *City64) Sum(b []byte) []byte
- func (this *City64) Sum64() uint64
- func (this *City64) Write(s []byte) (n int, err error)
- type Uint128
Functions ¶
func CityHash64 ¶
func CityHash64WithSeed ¶
func CityHash64WithSeeds ¶
func New64 ¶
Types ¶
type City64 ¶
type City64 struct {
// contains filtered or unexported fields
}
func (*City64) BlockSize ¶
func (*City64) Reset ¶
func (this *City64) Reset()
func (*City64) Size ¶
func (*City64) Sum ¶
func (*City64) Sum64 ¶
func (*City64) Write ¶
type Uint128 ¶
type Uint128 [2]uint64
func CityHash128 ¶
func CityHash128WithSeed ¶
func (Uint128) Bytes ¶
func (Uint128) Higher64 ¶
func (Uint128) Lower64 ¶
Source Files ¶
- Version
- v1.5.4 (latest)
- Published
- Feb 8, 2022
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 2 hours ago –
Tools for package owners.