util

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToByte

func BoolToByte(b bool, v byte) byte

func BytesToInts

func BytesToInts(b []byte) []int

func DecodeShiftJIS

func DecodeShiftJIS(s []uint8) string

func Escape

func Escape(stream []uint8) string

func GCD

func GCD(a, b int) int

func Hex

func Hex(stream []uint8) string

func Indent

func Indent(text string, indent string) string

func ReadVariableInt

func ReadVariableInt(allow3bytes bool, rdr io.Reader, rest *int) (int, error)

func SplitOptionalData

func SplitOptionalData(s string) map[string]string

func ZeroPadSliceToString

func ZeroPadSliceToString(s []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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