Documentation ¶
Overview ¶
Package encoding provides encoding utilities.
Index ¶
- func Base64StringToByteArray(input string) []byte
- func ByteArrayToBase64String(input []byte) string
- func Concat(a, b []byte) []byte
- func Concat3(a, b, c []byte) []byte
- func Concatenate(input ...[]byte) []byte
- func DecodeVector(in []byte) (data []byte, offset int, err error)
- func EncodeVector(input []byte) []byte
- func EncodeVectorLen(input []byte, length int) []byte
- func I2OSP(value, length int) []byte
- func OS2IP(input []byte) int
- func SuffixString(a []byte, b string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64StringToByteArray ¶
New: Base64StringToByteArray
func ByteArrayToBase64String ¶
New: ByteArrayToBase64String
func Concatenate ¶
Concatenate takes the variadic array of input and returns a concatenation of it.
func DecodeVector ¶
DecodeVector returns the byte-slice of length indexed in the first two bytes.
func EncodeVector ¶
EncodeVector returns the input with a two-byte encoding of its length.
func EncodeVectorLen ¶
EncodeVectorLen returns the input prepended with a byte encoding of its length.
func SuffixString ¶
SuffixString returns the concatenation of the input byte string and the string argument.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.