package hex
Import Path
github.com/tmthrgd/go-hex (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Involved Source Files
Package hex is an efficient hexadecimal implementation for Golang.
hex_amd64.go
hex_decode_amd64.s
hex_encode_amd64.s
Package-Level Type Names (only one, which is exported)
Package-Level Functions (total 18, in which 11 are exported)
Decode decodes src into DecodedLen(len(src)) bytes, returning the actual
number of bytes written to dst.
If Decode encounters invalid input, it returns an error describing the failure.
DecodedLen returns the length of a decoding of n source bytes.
DecodeString returns the bytes represented by the hexadecimal string s.
Encode encodes src into EncodedLen(len(src))
bytes of dst. As a convenience, it returns the number
of bytes written to dst, but this value is always EncodedLen(len(src)).
Encode implements lowercase hexadecimal encoding.
EncodedLen returns the length of an encoding of n source bytes.
EncodeToString returns the lowercase hexadecimal encoding of src.
EncodeUpper encodes src into EncodedLen(len(src))
bytes of dst. As a convenience, it returns the number
of bytes written to dst, but this value is always EncodedLen(len(src)).
EncodeUpper implements uppercase hexadecimal encoding.
EncodeUpperToString returns the uppercase hexadecimal encoding of src.
MustDecodeString is like DecodeString but panics if the string cannot be
parsed. It simplifies safe initialization of global variables holding
binary data.
RawEncode encodes src into EncodedLen(len(src))
bytes of dst. As a convenience, it returns the number
of bytes written to dst, but this value is always EncodedLen(len(src)).
RawEncode implements hexadecimal encoding for a given alphabet.
RawEncodeToString returns the hexadecimal encoding of src for a given
alphabet.
Package-Level Variables (total 3, none are exported)
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)