varint

package
v0.0.0-...-7a19e20 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 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