encoding

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Whitespace = " \t\r\n"

Variables

This section is empty.

Functions

func AppendSleb128

func AppendSleb128(buf []byte, val int64) []byte

func DecodeSleb128

func DecodeSleb128(b []byte) (s int64, n int)

func ReadElement

func ReadElement(text string) (string, string)

This reads an element enclosed with parenthesis. It also keeps track of speechmarks

func ReadString

func ReadString(text string) (string, string)

Reads a string enclosed with ""

func ReadToken

func ReadToken(text string) (string, string)

Reads non-whitespace token

func SkipComment

func SkipComment(text string) string

Skip a multiline comment (; ;)

func WriteString

func WriteString(w io.Writer, s string) error

func WriteUvarint

func WriteUvarint(w io.Writer, v uint64) error

func WriteVarint

func WriteVarint(w io.Writer, v int64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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