b0rkhash

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README

DO NOT USE THIS!

This folder contains a broken implementation of the Google CityHash algorithm to access the SCS archive files of ETS2.

  • It uses more constants than the original implementation
  • For file names with 8 characters length ALWAYS the same hash (K2) is returned
  • Multiple other derivations from the original C-implementation made by Google

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CityHash64

func CityHash64(s []byte) uint64

CityHash64 return a 64-bit hash.

func CityHash64WithSeed

func CityHash64WithSeed(s []byte, seed uint64) uint64

CityHash64WithSeed return a 64-bit hash with a seed.

func CityHash64WithSeeds

func CityHash64WithSeeds(s []byte, seed0, seed1 uint64) uint64

CityHash64WithSeeds return a 64-bit hash with two seeds.

Types

type Uint128

type Uint128 [2]uint64

Uint128 type uint128

func (Uint128) High64

func (u Uint128) High64() uint64

High64 return the high 64-bit of u.

func (Uint128) Low64

func (u Uint128) Low64() uint64

Low64 return the low 64-bit of u.

Jump to

Keyboard shortcuts

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