문제

I came across this piece of code, but am not able to entirely make sense of it:

(((x)[y] << 8) | (x)[(y)+1])

where x is a pointer to a const unsigned char and y is an integer.

도움이 되었습니까?

해결책

It extracts the 16-bit big-endian value starting at index y from array x.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top