Documentation ¶
Overview ¶
Package fnv implements mixing of various values using 64-bit FNV1a alg.
Index ¶
- Constants
- type Hash128
- func (v *Hash128) DecodeMsgpack(dec *msgpack.Decoder) error
- func (s *Hash128) Downmix16() uint16
- func (s Hash128) Downmix32() uint32
- func (s Hash128) Downmix64() uint64
- func (v Hash128) EncodeMsgpack(enc *msgpack.Encoder) error
- func (s *Hash128) LoadBinary(buf []byte)
- func (s *Hash128) MarshalBinary() ([]byte, error)
- func (v Hash128) MarshalText() ([]byte, error)
- func (s *Hash128) PutBinary(buf []byte)
- func (s *Hash128) PutHex(buf []byte)
- func (s Hash128) String() string
- func (s *Hash128) UnmarshalBinary(b []byte) error
- func (v *Hash128) UnmarshalText(b []byte) error
- func (s *Hash128) WriteBool(v bool)
- func (hash *Hash128) WriteByte(v byte) error
- func (s *Hash128) WriteBytes(data []byte)
- func (s *Hash128) WriteBytesZ(data []byte)
- func (s *Hash128) WriteInt(v int)
- func (s *Hash128) WriteString(str string)
- func (s *Hash128) WriteStringZ(str string)
- func (s *Hash128) WriteUint16(v uint16)
- func (s *Hash128) WriteUint32(v uint32)
- func (s *Hash128) WriteUint64(v uint64)
- func (s *Hash128) WriteZero()
- type Hash64
- func (v *Hash64) DecodeMsgpack(dec *msgpack.Decoder) error
- func (s Hash64) Downmix16() uint16
- func (s Hash64) Downmix32() uint32
- func (s Hash64) Downmix64() uint64
- func (v Hash64) EncodeMsgpack(enc *msgpack.Encoder) error
- func (s *Hash64) LoadBinary(buf []byte)
- func (s Hash64) MarshalBinary() ([]byte, error)
- func (v Hash64) MarshalText() ([]byte, error)
- func (s *Hash64) PutBinary(buf []byte)
- func (s *Hash64) PutHex(buf []byte)
- func (s Hash64) String() string
- func (s *Hash64) UnmarshalBinary(b []byte) error
- func (v *Hash64) UnmarshalText(b []byte) error
- func (s *Hash64) Write(v []byte) (n int, err error)
- func (s *Hash64) WriteBool(v bool)
- func (hash *Hash64) WriteByte(v byte) error
- func (s *Hash64) WriteBytes(data []byte)
- func (s *Hash64) WriteBytesZ(data []byte)
- func (s *Hash64) WriteInt(v int)
- func (s *Hash64) WriteString(str string)
- func (s *Hash64) WriteStringZ(str string)
- func (s *Hash64) WriteUint16(v uint16)
- func (s *Hash64) WriteUint32(v uint32)
- func (s *Hash64) WriteUint64(v uint64)
- func (hash *Hash64) WriteZero()
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 (*Hash128) DecodeMsgpack ¶
func (Hash128) EncodeMsgpack ¶
func (*Hash128) LoadBinary ¶
func (*Hash128) MarshalBinary ¶
func (Hash128) MarshalText ¶
func (*Hash128) UnmarshalBinary ¶
func (*Hash128) UnmarshalText ¶
func (*Hash128) WriteBytes ¶
func (*Hash128) WriteBytesZ ¶
func (*Hash128) WriteString ¶
func (*Hash128) WriteStringZ ¶
func (*Hash128) WriteUint16 ¶
func (*Hash128) WriteUint32 ¶
func (*Hash128) WriteUint64 ¶
type Hash64 ¶
type Hash64 uint64
func (*Hash64) DecodeMsgpack ¶
func (Hash64) EncodeMsgpack ¶
func (*Hash64) LoadBinary ¶
func (Hash64) MarshalBinary ¶
func (Hash64) MarshalText ¶
func (*Hash64) UnmarshalBinary ¶
func (*Hash64) UnmarshalText ¶
func (*Hash64) WriteBytes ¶
func (*Hash64) WriteBytesZ ¶
func (*Hash64) WriteString ¶
func (*Hash64) WriteStringZ ¶
func (*Hash64) WriteUint16 ¶
func (*Hash64) WriteUint32 ¶
func (*Hash64) WriteUint64 ¶
Click to show internal directories.
Click to hide internal directories.