icap

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const MinArrayCap = 16

MinArrayCap is smallest capacity that array may have.

Variables

This section is empty.

Functions

func Doubleup

func Doubleup(c, n int) int

Doubleup grow up capcity by c *= 2 until c >= n

func Roundup

func Roundup(n, r int) int

Roundup round up size by the block size r

Types

This section is empty.

Jump to

Keyboard shortcuts

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