uleb128

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package uleb128 reads and writes unsigned LEB128 integers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(r io.ByteReader) (v uint64, n int, err error)

Read reads an unsigned LEB128 value from r. Returns the value, number of bytes read, and/or an error.

func Write

func Write(w io.ByteWriter, v uint64) (n int, err error)

Write writes v in unsigned LEB128 format to w. Returns the number of bytes written and/or an error.

Adapted from the Go standard library with the following copyright: Copyright 2018 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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