internal

package
v0.0.0-...-3056823 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: Apache-2.0, BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package internal contains code that is shared among encoding implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoding

type Encoding struct {
	encoding.Encoding
	Name string
	MIB  identifier.MIB
}

Encoding is an implementation of the Encoding interface that adds the String and ID methods to an existing encoding.

func (*Encoding) ID

func (e *Encoding) ID() (mib identifier.MIB, other string)

func (*Encoding) String

func (e *Encoding) String() string

type FuncEncoding

type FuncEncoding struct {
	Decoder func() transform.Transformer
	Encoder func() transform.Transformer
}

FuncEncoding is an Encoding that combines two functions returning a new Transformer.

func (FuncEncoding) NewDecoder

func (e FuncEncoding) NewDecoder() transform.Transformer

func (FuncEncoding) NewEncoder

func (e FuncEncoding) NewEncoder() transform.Transformer

type SimpleEncoding

type SimpleEncoding struct {
	Decoder transform.Transformer
	Encoder transform.Transformer
}

SimpleEncoding is an Encoding that combines two Transformers.

func (*SimpleEncoding) NewDecoder

func (e *SimpleEncoding) NewDecoder() transform.Transformer

func (*SimpleEncoding) NewEncoder

func (e *SimpleEncoding) NewEncoder() transform.Transformer

Directories

Path Synopsis
Package identifier defines the contract between implementations of Encoding and Index by defining identifiers that uniquely identify standardized coded character sets (CCS) and character encoding schemes (CES), which we will together refer to as encodings, for which Encoding implementations provide converters to and from UTF-8.
Package identifier defines the contract between implementations of Encoding and Index by defining identifiers that uniquely identify standardized coded character sets (CCS) and character encoding schemes (CES), which we will together refer to as encodings, for which Encoding implementations provide converters to and from UTF-8.

Jump to

Keyboard shortcuts

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