hashcode

package
v0.0.0-...-9e35eaa Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BytesHashCode

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

func NewBytesHashCode

func NewBytesHashCode(bytes []byte) *BytesHashCode

func (*BytesHashCode) AsBytes

func (b *BytesHashCode) AsBytes() []byte

func (*BytesHashCode) AsHex

func (b *BytesHashCode) AsHex() string

func (*BytesHashCode) AsUint32

func (b *BytesHashCode) AsUint32() uint32

func (*BytesHashCode) Bits

func (b *BytesHashCode) Bits() int

type HashCode

type HashCode interface {
	// Bits HashCode编码长度
	Bits() int
	AsUint32() uint32
	AsBytes() []byte
	AsHex() string
}

func NewUint32HashCode

func NewUint32HashCode(hash uint32) HashCode

type Uint32HashCode

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

func (*Uint32HashCode) AsBytes

func (u *Uint32HashCode) AsBytes() []byte

func (*Uint32HashCode) AsHex

func (u *Uint32HashCode) AsHex() string

func (*Uint32HashCode) AsUint32

func (u *Uint32HashCode) AsUint32() uint32

func (*Uint32HashCode) Bits

func (u *Uint32HashCode) Bits() int

Jump to

Keyboard shortcuts

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