Discover Packages
github.com/grailbio/base
writehash
package
Version:
v0.0.11
Opens a new window with list of versions in this module.
Published: Mar 7, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
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.
Opens a new window with list of known importers.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
Bool(h, v)
Byte(h, b)
Float32(h, v)
Float64(h, v)
Int(h, v)
Int16(h, v)
Int32(h, v)
Int64(h, v)
Rune(h, r)
String(h, s)
Uint(h, v)
Uint16(h, v)
Uint32(h, v)
Uint64(h, v)
Types
Source Files
Documentation
Documentation
¶
Package writehash provides a set of utility functions to hash
common types into hashes.
func Bool(h hash.Hash, v bool)
func Byte(h hash.Hash, b byte)
func Float32(h hash.Hash, v float32)
func Float64(h hash.Hash, v float64)
func Int(h hash.Hash, v int)
func Int16(h hash.Hash, v int)
func Int32(h hash.Hash, v int32)
func Int64(h hash.Hash, v int64)
func Rune(h hash.Hash, r rune)
func String(h hash.Hash, s string)
func Uint(h hash.Hash, v uint)
func Uint16(h hash.Hash, v uint16)
func Uint32(h hash.Hash, v uint32)
func Uint64(h hash.Hash, v uint64)
Bool encodes the boolean v into writer w.
Byte writes the byte b into writer w.
Float32 encodes the 32-bit floating point number v into writer w.
Float64 encodes the 64-bit floating point number v into writer w.
Int encodes the integer v into writer w.
Int16 encodes the 16-bit integer v into writer w.
Int32 encodes the 32-bit integer v into writer w.
Int64 encodes the 64-bit integer v into writer w.
Run encodes the rune r into writer w.
String encodes the string s into writer w.
Uint encodes the unsigned integer v into writer w.
Uint16 encodes the unsigned 16-bit integer v into writer w.
Uint32 encodes the unsigned 32-bit integer v into writer w.
Uint64 encodes the unsigned 64-bit integer v into writer w.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.