mbits

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: BSD-3-Clause Imports: 1 Imported by: 2

Documentation

Overview

Package mbits provides functions for manipulating bits and bytes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LeadingZeroes added in v0.12.2

func LeadingZeroes(data []byte) int

LeadingZeroes reports the number of leading zero bytes at the beginning of data.

func TrailingZeroes added in v0.12.2

func TrailingZeroes(data []byte) int

TrailingZeroes reports the number of trailing zero bytes at the end of data.

func Zero

func Zero(data []byte) int

Zero sets the contents of data to zero and returns len(data).

Types

This section is empty.

Jump to

Keyboard shortcuts

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