public static function getInt2d($data, $pos) { return ord($data[$pos]) | ord($data[$pos + 1]) << 8; }