1
1
mirror of https://github.com/wader/fq.git synced 2024-12-25 14:23:18 +03:00
fq/pkg/bitio/reversebytes.go
Mattias Wadman 970465996c Init
2021-09-12 13:08:42 +02:00

9 lines
131 B
Go

package bitio
func ReverseBytes(bs []byte) {
l := len(bs)
for i := 0; i < l/2; i++ {
bs[i], bs[l-i-1] = bs[l-i-1], bs[i]
}
}