idconv

package
v0.0.0-...-364fed7 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package idconv implements utility methods for converting between a base-10 128-bit ID to a number of a different base and size.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Digits

func Digits(size, base int) int

Digits will the the number of digits for an integer of bitsize size and base base.

func Log2

func Log2(n int) int

Log2 gets the base-2 log of n, if n is a power of 2 and <= 16.

Types

This section is empty.

Jump to

Keyboard shortcuts

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