iconv

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

iconv.go

Index

Constants

View Source
const DefaultBufSize = 4096

Variables

View Source
var EILSEQ = syscall.Errno(C.EILSEQ)

Functions

This section is empty.

Types

type Iconv

type Iconv struct {
	Handle C.iconv_t
}

func Open

func Open(tocode string, fromcode string) (cd Iconv, err error)

Open returns a conversion descriptor cd, cd contains a conversion state and can not be used in multiple threads simultaneously.

func (Iconv) Close

func (cd Iconv) Close() error

func (Iconv) Conv

func (cd Iconv) Conv(b []byte, outbuf []byte) (out []byte, inleft int, err error)

func (Iconv) ConvString

func (cd Iconv) ConvString(s string) string

func (Iconv) Do

func (cd Iconv) Do(inbuf []byte, in int, outbuf []byte) (out, inleft int, err error)

func (Iconv) DoWrite

func (cd Iconv) DoWrite(w io.Writer, inbuf []byte, in int, outbuf []byte) (inleft int, err error)

Jump to

Keyboard shortcuts

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