Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToBytes ¶
ToBytes returns a byte slice aliasing to the contents of the input string. Many hash functions are written to take []byte as input -- this lets us provide an API that takes a string and use those hash functions without a temporary allocation (and the garbage and copying string contents an allocation implies).
SAFETY: the returned byte slice MUST NOT be written to, only read.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.