uleb128

package module
v0.0.0-...-8b02f5c Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: MIT Imports: 1 Imported by: 14

README

This exists due to other repositories in the organization.

This whole repo isn't actually necessary. Check out encoding/binary's ReadUvarint/AppendUvarint.

Documentation

Overview

Package uleb128 allows for marshaling/unmarshaling of uleb128 values.

This package takes https://github.com/jerwuqu/uleb128/blob/master/uleb128.js as reference.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(i int) (r []byte)

Marshal converts an int into a uleb128-encoded byte array.

func Unmarshal

func Unmarshal(r []byte) (total int, len int)

Unmarshal converts a uleb128-encoded byte array into an int.

func UnmarshalReader

func UnmarshalReader(r io.Reader) (total int)

UnmarshalReader unmarshals something with an io.Reader

Types

This section is empty.

Jump to

Keyboard shortcuts

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