mirror of
https://github.com/wader/fq.git
synced 2024-12-23 13:22:58 +03:00
9 lines
131 B
Go
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]
|
|
}
|
|
}
|