encoding

package
v0.0.0-...-3996646 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidByte = errors.New("invalid gsm7 byte")

ErrInvalidByte means that a given byte is outside of the GSM 7-bit encoding range.

This can only happen during decoding.

View Source
var ErrInvalidCharacter = errors.New("invalid gsm7 character")

ErrInvalidCharacter means a given character can not be represented in GSM 7-bit encoding.

This can only happen during encoding.

Functions

func GSM7

func GSM7(packed bool, nli NLI) encoding.Encoding

GSM7 returns a GSM 7-bit Bit Encoding.

Set the packed flag to true if you wish to convert septets to octets, this should be false for most SMPP providers.

Types

type NLI

type NLI byte

NLI is National Language Indicator used in UDH

const (
	NliNone    NLI = 0x00
	NliTurkish NLI = 0x01
)

National Language Indicators that have lookup tables defined

Jump to

Keyboard shortcuts

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