mirror of https://github.com/q191201771/lal.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
146 B
Go
10 lines
146 B
Go
6 years ago
|
package bele
|
||
|
|
||
|
func BeUInt24(p []byte) (ret uint32) {
|
||
|
ret = 0
|
||
|
ret |= uint32(p[0]) << 16
|
||
|
ret |= uint32(p[1]) << 8
|
||
|
ret |= uint32(p[2])
|
||
|
return
|
||
|
}
|