utils

package
v2.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package utils provides utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRC32c

func CRC32c(buf []byte) uint32

CRC32c returns values compatible with Linux crc32c function.

func IsPowerOf2

func IsPowerOf2[T uint8 | uint16 | uint32 | uint64](num T) bool

IsPowerOf2 returns true if num is a power of 2.

Types

This section is empty.

Jump to

Keyboard shortcuts

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