Back to godoc.org

Package writehash

v0.0.9
Latest Go to latest

The latest major version is .

Published: Jun 24, 2020 | License: Apache-2.0 | Module: github.com/grailbio/base

Overview

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

Index

func Bool

func Bool(h hash.Hash, v bool)

Bool encodes the boolean v into writer w.

func Byte

func Byte(h hash.Hash, b byte)

Byte writes the byte b into writer w.

func Float32

func Float32(h hash.Hash, v float32)

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

func Float64

func Float64(h hash.Hash, v float64)

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

func Int

func Int(h hash.Hash, v int)

Int encodes the integer v into writer w.

func Int16

func Int16(h hash.Hash, v int)

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

func Int32

func Int32(h hash.Hash, v int32)

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

func Int64

func Int64(h hash.Hash, v int64)

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

func Rune

func Rune(h hash.Hash, r rune)

Run encodes the rune r into writer w.

func String

func String(h hash.Hash, s string)

String encodes the string s into writer w.

func Uint

func Uint(h hash.Hash, v uint)

Uint encodes the unsigned integer v into writer w.

func Uint16

func Uint16(h hash.Hash, v uint16)

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

func Uint32

func Uint32(h hash.Hash, v uint32)

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

func Uint64

func Uint64(h hash.Hash, v uint64)

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier