common

package
v0.0.0-...-f33b5a6 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompactArrayLength

func CompactArrayLength(bits, count int) int

func MakeInfinite

func MakeInfinite() (chan<- interface{}, <-chan interface{})

func VarintSize

func VarintSize(val int32) int

Types

type CompactArray

type CompactArray struct {
	Values         []int64
	BitsPerElement int
	Max            int
}

func NewCompactArray

func NewCompactArray(bits, count int) *CompactArray

func (*CompactArray) Get

func (c *CompactArray) Get(index int) int

func (*CompactArray) Set

func (c *CompactArray) Set(index, value int) int

Jump to

Keyboard shortcuts

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