package bswap
import "github.com/segmentio/asm/bswap"
Index ¶
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.
Source Files ¶
- Version
- v1.0.0
- Published
- Sep 13, 2021
- Platform
- darwin/amd64
- Imports
- 1 packages
- Last checked
- 10 minutes ago –
Tools for package owners.