mirror of
https://github.com/zu1k/nali.git
synced 2025-01-22 21:29:02 +08:00
10 lines
217 B
Go
10 lines
217 B
Go
|
package common
|
||
|
|
||
|
// byteToUInt32 将 byte 转换为uint32
|
||
|
func ByteToUInt32(data []byte) uint32 {
|
||
|
i := uint32(data[0]) & 0xff
|
||
|
i |= (uint32(data[1]) << 8) & 0xff00
|
||
|
i |= (uint32(data[2]) << 16) & 0xff0000
|
||
|
return i
|
||
|
}
|