fnv

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package fnv implements mixing of various values using 64-bit FNV1a alg.

Index

Constants

View Source
const (
	Size128 = 16
)
View Source
const (
	Size64 = 8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash128

type Hash128 [2]uint64

func Bytes128

func Bytes128(v []byte) Hash128

func New128

func New128() Hash128

func String128

func String128(s string) Hash128

func (*Hash128) DecodeMsgpack

func (v *Hash128) DecodeMsgpack(dec *msgpack.Decoder) error

func (*Hash128) Downmix16

func (s *Hash128) Downmix16() uint16

func (Hash128) Downmix32

func (s Hash128) Downmix32() uint32

func (Hash128) Downmix64

func (s Hash128) Downmix64() uint64

func (Hash128) EncodeMsgpack

func (v Hash128) EncodeMsgpack(enc *msgpack.Encoder) error

func (*Hash128) LoadBinary

func (s *Hash128) LoadBinary(buf []byte)

func (*Hash128) MarshalBinary

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

func (Hash128) MarshalText

func (v Hash128) MarshalText() ([]byte, error)

func (*Hash128) PutBinary

func (s *Hash128) PutBinary(buf []byte)

func (*Hash128) PutHex

func (s *Hash128) PutHex(buf []byte)

func (Hash128) String

func (s Hash128) String() string

func (*Hash128) UnmarshalBinary

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

func (*Hash128) UnmarshalText

func (v *Hash128) UnmarshalText(b []byte) error

func (*Hash128) WriteBool

func (s *Hash128) WriteBool(v bool)

func (*Hash128) WriteByte

func (hash *Hash128) WriteByte(v byte) error

func (*Hash128) WriteBytes

func (s *Hash128) WriteBytes(data []byte)

func (*Hash128) WriteBytesZ

func (s *Hash128) WriteBytesZ(data []byte)

func (*Hash128) WriteInt

func (s *Hash128) WriteInt(v int)

func (*Hash128) WriteString

func (s *Hash128) WriteString(str string)

func (*Hash128) WriteStringZ

func (s *Hash128) WriteStringZ(str string)

func (*Hash128) WriteUint16

func (s *Hash128) WriteUint16(v uint16)

func (*Hash128) WriteUint32

func (s *Hash128) WriteUint32(v uint32)

func (*Hash128) WriteUint64

func (s *Hash128) WriteUint64(v uint64)

func (*Hash128) WriteZero

func (s *Hash128) WriteZero()

type Hash64

type Hash64 uint64

func Bytes64

func Bytes64(v []byte) Hash64

func New64

func New64() Hash64

func String64

func String64(s string) Hash64

func (*Hash64) DecodeMsgpack

func (v *Hash64) DecodeMsgpack(dec *msgpack.Decoder) error

func (Hash64) Downmix16

func (s Hash64) Downmix16() uint16

func (Hash64) Downmix32

func (s Hash64) Downmix32() uint32

func (Hash64) Downmix64

func (s Hash64) Downmix64() uint64

func (Hash64) EncodeMsgpack

func (v Hash64) EncodeMsgpack(enc *msgpack.Encoder) error

func (*Hash64) LoadBinary

func (s *Hash64) LoadBinary(buf []byte)

func (Hash64) MarshalBinary

func (s Hash64) MarshalBinary() ([]byte, error)

func (Hash64) MarshalText

func (v Hash64) MarshalText() ([]byte, error)

func (*Hash64) PutBinary

func (s *Hash64) PutBinary(buf []byte)

func (*Hash64) PutHex

func (s *Hash64) PutHex(buf []byte)

func (Hash64) String

func (s Hash64) String() string

func (*Hash64) UnmarshalBinary

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

func (*Hash64) UnmarshalText

func (v *Hash64) UnmarshalText(b []byte) error

func (*Hash64) Write

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

func (*Hash64) WriteBool

func (s *Hash64) WriteBool(v bool)

func (*Hash64) WriteByte

func (hash *Hash64) WriteByte(v byte) error

func (*Hash64) WriteBytes

func (s *Hash64) WriteBytes(data []byte)

func (*Hash64) WriteBytesZ

func (s *Hash64) WriteBytesZ(data []byte)

func (*Hash64) WriteInt

func (s *Hash64) WriteInt(v int)

func (*Hash64) WriteString

func (s *Hash64) WriteString(str string)

func (*Hash64) WriteStringZ

func (s *Hash64) WriteStringZ(str string)

func (*Hash64) WriteUint16

func (s *Hash64) WriteUint16(v uint16)

func (*Hash64) WriteUint32

func (s *Hash64) WriteUint32(v uint32)

func (*Hash64) WriteUint64

func (s *Hash64) WriteUint64(v uint64)

func (*Hash64) WriteZero

func (hash *Hash64) WriteZero()

Jump to

Keyboard shortcuts

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