我在Perl中有下面的代码需要转换为C ++吗?
my $uint32;
my $n = read( $psf{FH_PSF}, $uint32, 4 );
unpack_big_endian( 'I', $uint32 );
unpack_big_endian function:
my ( $pack, $chunk ) = @_;
# PSF always big-endian
unpack( $pack, $byte_order == $LITTLE_ENDIAN ? reverse($chunk) : $chunk );
数据文件已经使用perl代码打包,是否有可用于解压缩此数据的c ++实用程序?