Help us shape the future of Go! Take the 2026 Go Developer Survey

bswap

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT-0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Swap64

func Swap64(b []byte)

Swap64 performs an in-place byte swap on each 64 bits elements in b.

This function is useful when dealing with big-endian input; by converting it to little-endian, the data can then be compared using native CPU instructions instead of having to employ often slower byte comparison algorithms.

Types

This section is empty.

Jump to

Keyboard shortcuts

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