varint

package
v0.0.0-...-9ccd474 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func Len

func Len(value int32) int

Len of an encoded non-negative 31-bit integer in bytes.

func Put

func Put(dest []byte, value int32) (tail []byte)

Put a non-negative 31-bit integer at the head of a buffer.

func Scan

func Scan(src []byte) (value int32, tail []byte, err error)

Scan a non-negative 31-bit integer off the head of a buffer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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