nali/pkg/common/dbtool.go
zu1k d1b584c3e7 refactor: better download and error handle
Signed-off-by: zu1k <i@lgf.im>
2022-03-02 12:34:11 +08:00

9 lines
176 B
Go

package common
func ByteToUInt32(data []byte) uint32 {
i := uint32(data[0]) & 0xff
i |= (uint32(data[1]) << 8) & 0xff00
i |= (uint32(data[2]) << 16) & 0xff0000
return i
}