Versions in this module Expand all Collapse all v0 v0.2.0 Jun 26, 2026 Changes in this version + var ErrDumperClosed = errors.New("encoding/hex: dumper closed") + var ErrInvalidByte = errors.New("encoding/hex: invalid byte") + var ErrLength = errors.New("encoding/hex: odd length hex string") + func AppendDecode(a mem.Allocator, dst, src []byte) ([]byte, error) + func AppendEncode(a mem.Allocator, dst, src []byte) []byte + func Decode(dst, src []byte) (int, error) + func DecodeString(a mem.Allocator, s string) ([]byte, error) + func DecodedLen(x int) int + func Dump(a mem.Allocator, data []byte) string + func Encode(dst, src []byte) int + func EncodeToString(a mem.Allocator, src []byte) string + func EncodedLen(n int) int + type Decoder struct + func NewDecoder(r io.Reader) Decoder + func (d *Decoder) Read(p []byte) (int, error) + type Dumper struct + func NewDumper(w io.Writer) Dumper + func (h *Dumper) Close() error + func (h *Dumper) Write(data []byte) (int, error) + type Encoder struct + func NewEncoder(w io.Writer) Encoder + func (e *Encoder) Write(p []byte) (int, error)