hash

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 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 MemHash

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

MemHash holds a buffer of bytes and allows calculation of a hash over the bytes.

func (*MemHash) Hash

func (h *MemHash) Hash() uint32

Hash returns the hash over all bytes in the buffer

func (*MemHash) Reset

func (h *MemHash) Reset()

Reset resets the memory buffer

func (*MemHash) Write

func (h *MemHash) Write(bb []byte)

Write appends the byte slice to the buffer

func (*MemHash) WriteByte

func (h *MemHash) WriteByte(b byte)

WriteByte appends a byte to the buffer

func (*MemHash) WriteRand32

func (h *MemHash) WriteRand32()

WriteRand32 writes four random bytes to the buffer

Jump to

Keyboard shortcuts

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