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.
このリストの最初の構造をunpack()する方法は?
2番目のフィールドを整数にしたい(またはPHPは64ビット整数をサポートしていないのでfloatとしてより適切に言う)
マリオのおかげで、次のように解決しました:
$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');