Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何解压()这个列表中的第一个结构?
我希望第二个字段为整数(或者更好地说是浮点数,因为 PHP 不支持 64 位整数)
感谢马里奥,我这样解决了它:
$a = unpack("i", $this->read(4)); $b = unpack("i", $this->read(4)); $packet['file_length'] = $a[1] + $b[1] * 0x100000000;
$this->read()包装器在哪里:
$this->read()
mb_substr($data, $offset, $length, '8bit');