jutf

package module
v0.0.0-...-cd98ac9 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 3 Imported by: 1

README

jutf

This library implements support for the modified UTF-8 scheme used in Java. In particular, this is the format used by the DataInputStream#readUTF and DataOutputStream#writeUTF methods.

The library exports two functions:

func Decode(d []byte) (string, error)
func Encode(s string) []byte

License

MIT. See LICENSE.

Documentation

Overview

Package jutf implements the modified UTF-8 encoding used by Java.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(d []byte) (string, error)

Decode decodes the input array to a UTF-8 string.

func Encode

func Encode(s string) []byte

Encode returns a string in modified UTF-8 format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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