Documentation
¶
Index ¶
- Variables
- func A(s *cryptobyte.String) (netip.Addr, error)
- func AAAA(s *cryptobyte.String) (netip.Addr, error)
- func Base32(b []byte) string
- func Base64(b []byte) string
- func Name(s *cryptobyte.String, msgBuf []byte) (string, error)
- func Names(s *cryptobyte.String, msgBuf []byte) ([]string, error)
- func Offset(data, buf []byte) int
- func String(s *cryptobyte.String) (string, error)
- func StringAny(s *cryptobyte.String, len int) (string, error)
- func StringBase32(s *cryptobyte.String, len int) (string, error)
- func StringBase64(s *cryptobyte.String, len int) (string, error)
- func StringHex(s *cryptobyte.String, len int) (string, error)
- func StringTxt(s *cryptobyte.String) ([]string, error)
- func Txt(s *cryptobyte.String) ([]string, error)
- type Error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrOverflow = &Error{Err: "overflow data"} ErrTruncatedMessage = &Error{Err: "overflow truncated message"} ErrTrailingData = &Error{Err: "trailing record rdata"} )
Functions ¶
func Name ¶ added in v0.1.8
func Name(s *cryptobyte.String, msgBuf []byte) (string, error)
Name unpacks a name in a cryptobyte.String.
func Offset ¶ added in v0.1.8
Offset reports the offset of data into buf, that is reports off such that &data[0] == &buf[off]. It panics if data is not buf[off:].
func StringAny ¶
func StringAny(s *cryptobyte.String, len int) (string, error)
See [pack.StringAny].
func StringBase32 ¶ added in v0.1.9
func StringBase32(s *cryptobyte.String, len int) (string, error)
func StringBase64 ¶ added in v0.1.9
func StringBase64(s *cryptobyte.String, len int) (string, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.