cityhash

package module
v0.0.0-...-0305527 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: MIT Imports: 2 Imported by: 0

README

Go cityhash

Go implementation of Google city hash (MIT license) https://code.google.com/p/cityhash/

MIT License http://www.opensource.org/licenses/mit-license.php

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New128

func New128() hash.Hash

func New32

func New32() hash.Hash32

func New64

func New64() hash.Hash64

func Sum32

func Sum32(s []byte) uint32

func Sum64

func Sum64(s []byte) uint64

Types

type Hash128

type Hash128 struct {
	// contains filtered or unexported fields
}

func (*Hash128) BlockSize

func (city *Hash128) BlockSize() int

func (*Hash128) Reset

func (city *Hash128) Reset()

func (*Hash128) Size

func (city *Hash128) Size() int

func (*Hash128) Sum

func (city *Hash128) Sum(b []byte) []byte

func (*Hash128) Sum128

func (city *Hash128) Sum128() Uint128

func (*Hash128) Write

func (city *Hash128) Write(s []byte) (n int, err error)

type Hash32

type Hash32 struct {
	// contains filtered or unexported fields
}

func (*Hash32) BlockSize

func (city *Hash32) BlockSize() int

func (*Hash32) Reset

func (city *Hash32) Reset()

func (*Hash32) Size

func (city *Hash32) Size() int

func (*Hash32) Sum

func (city *Hash32) Sum(b []byte) []byte

func (*Hash32) Sum32

func (city *Hash32) Sum32() uint32

func (*Hash32) Write

func (city *Hash32) Write(s []byte) (n int, err error)

type Hash64

type Hash64 struct {
	// contains filtered or unexported fields
}

func (*Hash64) BlockSize

func (city *Hash64) BlockSize() int

func (*Hash64) Reset

func (city *Hash64) Reset()

func (*Hash64) Size

func (city *Hash64) Size() int

func (*Hash64) Sum

func (city *Hash64) Sum(b []byte) []byte

func (*Hash64) Sum64

func (city *Hash64) Sum64() uint64

func (*Hash64) Write

func (city *Hash64) Write(s []byte) (n int, err error)

type Uint128

type Uint128 [2]uint64

func Sum128

func Sum128(s []byte) Uint128

func (Uint128) Bytes

func (unit Uint128) Bytes() []byte

func (Uint128) Higher64

func (unit Uint128) Higher64() uint64

func (Uint128) Lower64

func (unit Uint128) Lower64() uint64

Jump to

Keyboard shortcuts

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