base256

package
v1.3.16 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CHARSET = []rune("!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^`abcdefghijklmnopqrstuvwxyz{|}€¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷ùúûüýÿăąĊčđĕĘğħĩĭıĵķĿŀŁłňŋŏœŖřŝşŦŧũūůŲŵſƀƁƂƄƆƇƔƕƗƙƛƜƟƢƥƦƧƩƪƭƮưƱƲƵƸƺƾǀǁǂƿǬǮǵǶǹǻǿ")

Based on the 512-characters UTF-8 table - @see https://www.utf8-chartable.de/unicode-utf8-table.pl?number=512

Functions

func CharAt

func CharAt(index int) string

CharAt returns the character string at the passed index in the Base-256 character set

func IndexOf

func IndexOf(char rune) int

IndexOf ...

Types

type Readable

type Readable string

Readable represents a character in a readable base-256 charset

func HexToReadable

func HexToReadable(hex string) (b256 Readable, err error)

HexToReadable ...

func ToBase256Readable

func ToBase256Readable(barray []byte) Readable

ToBase256Readable ...

func (Readable) Bytes

func (b256 Readable) Bytes() []byte

Bytes ...

func (Readable) IsEmpty

func (b256 Readable) IsEmpty() bool

IsEmpty ...

func (Readable) Len

func (b256 Readable) Len() int

Len ...

func (Readable) NonEmpty

func (b256 Readable) NonEmpty() bool

NonEmpty ...

func (Readable) String

func (b256 Readable) String() string

String ...

func (Readable) ToHex

func (b256 Readable) ToHex() string

ToHex ...

Jump to

Keyboard shortcuts

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