fnv

Imports

Imports #

"errors"
"hash"
"internal/byteorder"
"math/bits"

Constants & Variables

magic128 const #

const magic128 = "fnv\x05"

magic128a const #

const magic128a = "fnv\x06"

magic32 const #

const magic32 = "fnv\x01"

magic32a const #

const magic32a = "fnv\x02"

magic64 const #

const magic64 = "fnv\x03"

magic64a const #

const magic64a = "fnv\x04"

marshaledSize128 const #

const marshaledSize128 = *ast.BinaryExpr

marshaledSize32 const #

const marshaledSize32 = *ast.BinaryExpr

marshaledSize64 const #

const marshaledSize64 = *ast.BinaryExpr

offset128Higher const #

const offset128Higher = 0x6c62272e07bb0142

offset128Lower const #

const offset128Lower = 0x62b821756295c58d

offset32 const #

const offset32 = 2166136261

offset64 const #

const offset64 = 14695981039346656037

prime128Lower const #

const prime128Lower = 0x13b

prime128Shift const #

const prime128Shift = 24

prime32 const #

const prime32 = 16777619

prime64 const #

const prime64 = 1099511628211

Type Aliases

sum128 type #

type sum128 [2]uint64

sum128a type #

type sum128a [2]uint64

sum32 type #

type sum32 uint32

sum32a type #

type sum32a uint32

sum64 type #

type sum64 uint64

sum64a type #

type sum64a uint64

Functions

AppendBinary method #

func (s *sum128a) AppendBinary(b []byte) ([]byte, error)

AppendBinary method #

func (s *sum128) AppendBinary(b []byte) ([]byte, error)

AppendBinary method #

func (s *sum64a) AppendBinary(b []byte) ([]byte, error)

AppendBinary method #

func (s *sum64) AppendBinary(b []byte) ([]byte, error)

AppendBinary method #

func (s *sum32a) AppendBinary(b []byte) ([]byte, error)

AppendBinary method #

func (s *sum32) AppendBinary(b []byte) ([]byte, error)

BlockSize method #

func (s *sum32) BlockSize() int

BlockSize method #

func (s *sum128a) BlockSize() int

BlockSize method #

func (s *sum128) BlockSize() int

BlockSize method #

func (s *sum64a) BlockSize() int

BlockSize method #

func (s *sum64) BlockSize() int

BlockSize method #

func (s *sum32a) BlockSize() int

MarshalBinary method #

func (s *sum32) MarshalBinary() ([]byte, error)

MarshalBinary method #

func (s *sum32a) MarshalBinary() ([]byte, error)

MarshalBinary method #

func (s *sum128a) MarshalBinary() ([]byte, error)

MarshalBinary method #

func (s *sum128) MarshalBinary() ([]byte, error)

MarshalBinary method #

func (s *sum64a) MarshalBinary() ([]byte, error)

MarshalBinary method #

func (s *sum64) MarshalBinary() ([]byte, error)

New128 function #

New128 returns a new 128-bit FNV-1 [hash.Hash]. Its Sum method will lay the value out in big-endian byte order.

func New128() hash.Hash

New128a function #

New128a returns a new 128-bit FNV-1a [hash.Hash]. Its Sum method will lay the value out in big-endian byte order.

func New128a() hash.Hash

New32 function #

New32 returns a new 32-bit FNV-1 [hash.Hash]. Its Sum method will lay the value out in big-endian byte order.

func New32() hash.Hash32

New32a function #

New32a returns a new 32-bit FNV-1a [hash.Hash]. Its Sum method will lay the value out in big-endian byte order.

func New32a() hash.Hash32

New64 function #

New64 returns a new 64-bit FNV-1 [hash.Hash]. Its Sum method will lay the value out in big-endian byte order.

func New64() hash.Hash64

New64a function #

New64a returns a new 64-bit FNV-1a [hash.Hash]. Its Sum method will lay the value out in big-endian byte order.

func New64a() hash.Hash64

Reset method #

func (s *sum128) Reset()

Reset method #

func (s *sum32) Reset()

Reset method #

func (s *sum32a) Reset()

Reset method #

func (s *sum64) Reset()

Reset method #

func (s *sum64a) Reset()

Reset method #

func (s *sum128a) Reset()

Size method #

func (s *sum64) Size() int

Size method #

func (s *sum64a) Size() int

Size method #

func (s *sum128a) Size() int

Size method #

func (s *sum128) Size() int

Size method #

func (s *sum32) Size() int

Size method #

func (s *sum32a) Size() int

Sum method #

func (s *sum64a) Sum(in []byte) []byte

Sum method #

func (s *sum128) Sum(in []byte) []byte

Sum method #

func (s *sum128a) Sum(in []byte) []byte

Sum method #

func (s *sum64) Sum(in []byte) []byte

Sum method #

func (s *sum32a) Sum(in []byte) []byte

Sum method #

func (s *sum32) Sum(in []byte) []byte

Sum32 method #

func (s *sum32a) Sum32() uint32

Sum32 method #

func (s *sum32) Sum32() uint32

Sum64 method #

func (s *sum64a) Sum64() uint64

Sum64 method #

func (s *sum64) Sum64() uint64

UnmarshalBinary method #

func (s *sum32) UnmarshalBinary(b []byte) error

UnmarshalBinary method #

func (s *sum32a) UnmarshalBinary(b []byte) error

UnmarshalBinary method #

func (s *sum64) UnmarshalBinary(b []byte) error

UnmarshalBinary method #

func (s *sum64a) UnmarshalBinary(b []byte) error

UnmarshalBinary method #

func (s *sum128) UnmarshalBinary(b []byte) error

UnmarshalBinary method #

func (s *sum128a) UnmarshalBinary(b []byte) error

Write method #

func (s *sum64) Write(data []byte) (int, error)

Write method #

func (s *sum32a) Write(data []byte) (int, error)

Write method #

func (s *sum32) Write(data []byte) (int, error)

Write method #

func (s *sum64a) Write(data []byte) (int, error)

Write method #

func (s *sum128) Write(data []byte) (int, error)

Write method #

func (s *sum128a) Write(data []byte) (int, error)

Generated with Arrow