1
1
mirror of https://github.com/wader/fq.git synced 2024-12-25 22:34:14 +03:00
fq/pkg/bitio/reversebytes.go

9 lines
131 B
Go
Raw Normal View History

2020-06-08 03:29:51 +03:00
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]
}
}