writehash

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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