Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidHexString = merry.New("invalid hex string")
Functions ¶
func DecodeUint32 ¶
func DecodeUint64 ¶
func ParseHexValue ¶
ParseHexValue attempts to parse a string formatted as a hex value as described in the KMIP Profiles spec, in the "Hex representations" section.
If the string doesn't start with the required prefix "0x", it is assumed the string is not a hex representation, and nil, nil is returned.
An ErrInvalidHexString is returned if the hex parsing fails. If the max argument is >0, ErrInvalidHexString is returned if the number of bytes parsed is greater than max, ignoring leading zeros. All bytes parsed are returned (including leading zeros).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.