base: github.com/grailbio/base/writehash Index | Files

package writehash

import "github.com/grailbio/base/writehash"

Package writehash provides a set of utility functions to hash common types into hashes.

Index

Package Files

writehash.go

func Bool Uses

func Bool(h hash.Hash, v bool)

Bool encodes the boolean v into writer w.

func Byte Uses

func Byte(h hash.Hash, b byte)

Byte writes the byte b into writer w.

func Float32 Uses

func Float32(h hash.Hash, v float32)

Float32 encodes the 32-bit floating point number v into writer w.

func Float64 Uses

func Float64(h hash.Hash, v float64)

Float64 encodes the 64-bit floating point number v into writer w.

func Int Uses

func Int(h hash.Hash, v int)

Int encodes the integer v into writer w.

func Int16 Uses

func Int16(h hash.Hash, v int)

Int16 encodes the 16-bit integer v into writer w.

func Int32 Uses

func Int32(h hash.Hash, v int32)

Int32 encodes the 32-bit integer v into writer w.

func Int64 Uses

func Int64(h hash.Hash, v int64)

Int64 encodes the 64-bit integer v into writer w.

func Rune Uses

func Rune(h hash.Hash, r rune)

Run encodes the rune r into writer w.

func String Uses

func String(h hash.Hash, s string)

String encodes the string s into writer w.

func Uint Uses

func Uint(h hash.Hash, v uint)

Uint encodes the unsigned integer v into writer w.

func Uint16 Uses

func Uint16(h hash.Hash, v uint16)

Uint16 encodes the unsigned 16-bit integer v into writer w.

func Uint32 Uses

func Uint32(h hash.Hash, v uint32)

Uint32 encodes the unsigned 32-bit integer v into writer w.

func Uint64 Uses

func Uint64(h hash.Hash, v uint64)

Uint64 encodes the unsigned 64-bit integer v into writer w.

Package writehash imports 5 packages (graph) and is imported by 1 packages. Updated 2019-07-03. Refresh now. Tools for package owners.