xbradix

package
v0.0.0-...-388919d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Base10Bytes    = []byte("0123456789")
	Base16Bytes    = []byte("0123456789ABCDEF")
	Base36Bytes    = []byte("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ")
	Base62Bytes    = []byte("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz")
	Base10IndexMap = map[byte]int64{}
	Base16IndexMap = map[byte]int64{}
	Base36IndexMap = map[byte]int64{}
	Base62IndexMap = map[byte]int64{}
)

Functions

func Base10DecodeAtoi

func Base10DecodeAtoi(rstr string) int64

func Base10EncodeItoa

func Base10EncodeItoa(num int64) string

func Base16DecodeAtoa

func Base16DecodeAtoa(src string) (string, error)

func Base16DecodeAtob

func Base16DecodeAtob(src string) ([]byte, error)

func Base16DecodeAtoi

func Base16DecodeAtoi(rstr string) int64

func Base16DecodeBtob

func Base16DecodeBtob(src []byte) ([]byte, error)

func Base16EncodeAtoa

func Base16EncodeAtoa(src string) string

func Base16EncodeBtoa

func Base16EncodeBtoa(src []byte) string

func Base16EncodeBtob

func Base16EncodeBtob(src []byte) []byte

func Base16EncodeItoa

func Base16EncodeItoa(num int64) string

func Base32DecodeAtoa

func Base32DecodeAtoa(src string) (string, error)

func Base32DecodeAtob

func Base32DecodeAtob(src string) ([]byte, error)

func Base32DecodeBtob

func Base32DecodeBtob(src []byte) ([]byte, error)

func Base32EncodeAtoa

func Base32EncodeAtoa(src string) string

func Base32EncodeBtoa

func Base32EncodeBtoa(src []byte) string

func Base32EncodeBtob

func Base32EncodeBtob(src []byte) []byte

func Base32URLDecodeAtoa

func Base32URLDecodeAtoa(src string) (string, error)

func Base32URLDecodeAtob

func Base32URLDecodeAtob(src string) ([]byte, error)

func Base32URLDecodeBtob

func Base32URLDecodeBtob(src []byte) ([]byte, error)

func Base32URLEncodeAtoa

func Base32URLEncodeAtoa(src string) string

func Base32URLEncodeBtoa

func Base32URLEncodeBtoa(src []byte) string

func Base32URLEncodeBtob

func Base32URLEncodeBtob(src []byte) []byte

func Base36DecodeAtoi

func Base36DecodeAtoi(rstr string) int64

func Base36EncodeItoa

func Base36EncodeItoa(num int64) string

func Base62DecodeAtoi

func Base62DecodeAtoi(rstr string) int64

func Base62EncodeItoa

func Base62EncodeItoa(num int64) string

func Base64DecodeAtoa

func Base64DecodeAtoa(src string) (string, error)

func Base64DecodeAtob

func Base64DecodeAtob(src string) ([]byte, error)

func Base64DecodeBtob

func Base64DecodeBtob(src []byte) ([]byte, error)

func Base64EncodeAtoa

func Base64EncodeAtoa(src string) string

func Base64EncodeBtoa

func Base64EncodeBtoa(src []byte) string

func Base64EncodeBtob

func Base64EncodeBtob(src []byte) []byte

func Base64URLDecodeAtoa

func Base64URLDecodeAtoa(src string) (string, error)

func Base64URLDecodeAtob

func Base64URLDecodeAtob(src string) ([]byte, error)

func Base64URLDecodeBtob

func Base64URLDecodeBtob(src []byte) ([]byte, error)

func Base64URLEncodeAtoa

func Base64URLEncodeAtoa(src string) string

func Base64URLEncodeBtoa

func Base64URLEncodeBtoa(src []byte) string

func Base64URLEncodeBtob

func Base64URLEncodeBtob(src []byte) []byte

func BaseNDecodeAtoi

func BaseNDecodeAtoi(rstr string, indexes map[byte]int64) int64

func BaseNEncodeItoa

func BaseNEncodeItoa(num int64, radixes []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL