Standard library / hash/maphash

hash/maphash.Hash.BlockSize()

Return the preferred input block size in bytes; arbitrary write lengths remain valid. This is not a cryptographic authentication primitive. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
func (h *Hash) BlockSize() int

Return Value

int

Size in bytes.

Working Example

Example Snippetgo
package main
import (  "fmt"  "hash/maphash")
func main() { var h maphash.Hash; fmt.Println(h.BlockSize() > 0) }
Go Reference