// xval converts the first four bytes of a into an 32-bit unsigned
// integer in big-endian order.
xval converts the first four bytes of a into an 32-bit unsigned
integer in big-endian order.
// xval converts the first four bytes of a into an 32 - bit unsigned // integer in big - endian order .
func xval(a []byte) uint32 {
	var x uint32
	switch len(a) {
	default:
		x |= uint32(a[3])
		fallthrough
	case 3:
		x |= uint32(a[2]) << 8
		fallthrough
	case 2:
		x |= uint32(a[1]) << 16
		fallthrough
	case 1:
		x |= uint32(a[0]) << 24
	case 0:
	}
	return x
}
func xval ( a [ ] byte ) uint32 { var x uint32 switch len ( a ) { default : x |= uint32 ( a [ 3 ] ) fallthrough case 3 : x |= uint32 ( a [ 2 ] ) << 8 fallthrough case 2 : x |= uint32 ( a [ 1 ] ) << 16 fallthrough case 1 : x |= uint32 ( a [ 0 ] ) << 24 case 0 : } return x }
xval converts the first four bytes of a into an 32-bit unsigned
integer in big-endian order.
xval converts the first four bytes of a into an 32 - bit unsigned integer in big - endian order .