writehash

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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