ascii

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package ascii implements a ternary encoding ASCII strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeTrytes

func DecodeTrytes(src Trytes) (string, error)

DecodeTrytes returns the ASCII string represented by the encoded trytes. DecodeTrytes expects that src contains a valid ascii encoding and that in has even length, it returns an error otherwise. If src does not contain trytes, the behavior of DecodeTrytes is undefined.

func EncodeToTrytes

func EncodeToTrytes(src string) (Trytes, error)

EncodeToTrytes returns the encoding of ASCII string src converted into trytes. If src is not a valid ASCII string, an error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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