バイト配列の最後のバイトの下位 4 ビットを選択しようとしています。これは以前にPHPで行った方法ですが、Javaは初めてです。
$lower4bit = substr($bytes[19], -1);
//Convert the hex to decimal to get the offset value
$offset = hexdec($lower4bit);
//Select the value of the 4 bytes starting at the offset
$joinedArray = implode(array_slice($bytes, $offset, 4));
誰かがJavaで正しい方向に私を向けることができますか?