☰
Debian Codegraph
@
1.12.0-2
1.12.0-1
/
/
internal
/
u32
/
u32.go
☽
☼
internal/u32/u32.go
code
plain
raw
Apache-2.0
2020-2026 Tetrate.io, Inc.
debian/copyright
1
package u32
2
3
// LeBytes returns a byte slice corresponding to the 4 bytes in the uint32 in little-endian byte order.
4
func LeBytes(v uint32) []byte {
5
return []byte{
6
byte(v),
7
byte(v >> 8),
8
byte(v >> 16),
9
byte(v >> 24),
10
}
11
}