varuint64

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 0 Imported by: 2 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

varuint64

Documentation

Index

Constants

View Source
const (
	// MaxSize is the maximum possible size of varuint64.
	MaxSize = 9
)

Variables

This section is empty.

Functions

func Contains

func Contains(b []byte) bool

Contains returns true if slice contains complete varuint64.

func Parse

func Parse(b []byte) (uint64, uint64)

Parse parses varuint64 present in the slice.

func Put

func Put(b []byte, v uint64) uint64

Put puts varuint64 in the buffer.

func Size

func Size(v uint64) uint64

Size computes the size of the varuint64.

Types

This section is empty.

Jump to

Keyboard shortcuts

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