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: 1
Opens a new window with list of known importers.
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.