PHP: Combine Two 16-bit Integers into a 32-bit integer
Posted
by Goro
on Stack Overflow
See other posts from Stack Overflow
or by Goro
Published on 2010-06-17T22:06:24Z
Indexed on
2010/06/17
22:13 UTC
Read the original article
Hit count: 292
php
|bit-manipulation
Hello,
I am trying to combine two integers in my application. By combine I mean stick one byte stream at the end of the other, not concatenate the strings.
The two integers are passed from hardware that can't pass a 32 bit value directly, but passes two consecutive 16-bit values separately.
Thanks,
© Stack Overflow or respective owner