package binaryutil

import "github.com/influxdata/influxdb/pkg/binaryutil"

Index

Functions

func UvarintSize

func UvarintSize(x uint64) int

UvarintSize returns the number of bytes to uvarint encode x. This code is copied from encoding/binary.PutUvarint() with the buffer removed.

func VarintSize

func VarintSize(x int64) int

VarintSize returns the number of bytes to varint encode x. This code is copied from encoding/binary.PutVarint() with the buffer removed.

Source Files

binaryutil.go

Version
v1.12.1 (latest)
Published
Jun 24, 2025
Platform
linux/amd64
Last checked
1 day ago

Tools for package owners.