crbytes

package
v0.0.0-...-fe658a2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocAligned

func AllocAligned(n int) []byte

AllocAligned allocates a new byte slice of length n, ensuring the address of the beginning of the slice is word aligned. Go does not guarantee that a simple make([]byte, n) is aligned.

func CommonPrefix

func CommonPrefix(a, b []byte) int

CommonPrefix returns the longest prefix shared by the two slices.

func CopyAligned

func CopyAligned(s []byte) []byte

CopyAligned copies the provided byte slice into an aligned byte slice of the same length.

Types

This section is empty.

Jump to

Keyboard shortcuts

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