Documentation
¶
Index ¶
- Variables
- func BufferRead[THash HashType](buf *bytes.Reader) (res THash, err error)
- func BufferWrite[THash HashType](buf *bytes.Buffer, hash THash) error
- func HashBytes[TH HashType](value TH) ([]byte, error)
- type Hash128
- type Hash160
- type Hash224
- type Hash256
- type Hash384
- type Hash512
- type HashType
- type Hasher
- type IHash
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrKeyNotFound = errors.New("Key not found") ErrTypeMismatch = errors.New("Type mismatch") )
Functions ¶
func BufferRead ¶ added in v1.0.0
BufferRead reads the given hash or other supported types from the buffer.
func BufferWrite ¶ added in v1.0.0
BufferWrite writes the given hash or other supported types to the buffer.
Types ¶
Click to show internal directories.
Click to hide internal directories.