AMFPHPまたは低レベルのデータストレージに精通している人が、整数が4バイトではなく2バイトとして格納されている理由を説明できるでしょうか。私の知る限り、AMF3プロトコルは4バイト整数を要求します。シリアライザーの特定のコードは次のとおりです。
/**
* writeInt takes an int and writes it as 2 bytes to the output stream
* 0-65535 range
*
* @param int $n An integer to convert to a 2 byte binary string
*/
function writeInt($n) {
$this->outBuffer .= pack("n", $n); // use pack with the n flag
}
この質問は具体的すぎるかもしれませんが、誰かが私の質問に答えるのを手伝ってもらえますか?