开发者

Convert 8 bytes to a signed long (64 bit)

开发者 https://www.devze.com 2023-01-18 23:49 出处:网络
I\'m reading 8 bytes from a socket i开发者_如何学编程n PHP, and want to transform them into a 64 bit signed integer.

I'm reading 8 bytes from a socket i开发者_如何学编程n PHP, and want to transform them into a 64 bit signed integer.

  • How can I do this in 64 bit PHP? unpack doesn't support 64 bit numbers
  • In 32 bit PHP, is there a way to make it into a string that can be used by BCMath?


Perhaps Converting byte-stream into numeric data-type will help...

0

精彩评论

暂无评论...
验证码 换一张
取 消