Discover Packages
github.com/anders/jutf
package
module
Version:
v0.0.0-...-cd98ac9
Opens a new window with list of versions in this module.
Published: Jul 4, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
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 .
Expand ▾
Collapse ▴
Documentation
¶
Package jutf implements the modified UTF-8 encoding used by Java.
Decode decodes the input array to a UTF-8 string.
Encode returns a string in modified UTF-8 format.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.