Versions in this module Expand all Collapse all v0 v0.1.0 Aug 4, 2022 Changes in this version + var ErrHashNotFound = errors.New("hash type not found") + var ErrValueTooBig = errors.New("yamf: value is too big") + var MaxValueSize = 1024 + func HashEqual(a Hash, b TypeValue) bool + func RegisterHash(id uint64, f func() (Hash, error)) + type Hash interface + HashType func() uint64 + func CreateHash(id uint64) (Hash, error) + func TypeValueToHash(val TypeValue) (Hash, error) + type TypeValue struct + Type uint64 + Value []byte + func HashToTypeValue(hash Hash) *TypeValue + func (s *TypeValue) MarshalBinary() ([]byte, error) + func (s *TypeValue) MarshalText() ([]byte, error) + func (s *TypeValue) UnmarshalBinary(data []byte) error + func (s *TypeValue) UnmarshalText(text []byte) error + func (t *TypeValue) ReadFrom(r io.Reader) (n int64, err error) + func (t *TypeValue) WriteTo(w io.Writer) (n int64, err error) + func (t TypeValue) Equal(other TypeValue) bool + func (t TypeValue) String() string