本文整理汇总了C++中IODevice::read_int64方法的典型用法代码示例。如果您正苦于以下问题:C++ IODevice::read_int64方法的具体用法?C++ IODevice::read_int64怎么用?C++ IODevice::read_int64使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IODevice
的用法示例。
在下文中一共展示了IODevice::read_int64方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Exception
void Zip64EndOfCentralDirectoryRecord::load(IODevice &input)
{
signature = input.read_int32();
if (signature != 0x06064b50)
{
throw Exception("Incorrect Zip64 End of Central Directory Record signature");
}
size_of_record = input.read_int64();
version_made_by = input.read_int16();
version_needed_to_extract = input.read_int16();
number_of_this_disk = input.read_int32();
number_of_disk_with_central_directory_start = input.read_int32();
number_of_entries_on_this_disk = input.read_int64();
number_of_entries_in_central_directory = input.read_int64();
size_of_central_directory = input.read_int64();
offset_to_start_of_central_directory = input.read_int64();
// todo: read extensible data sector
}
示例2: Exception
void Zip64EndOfCentralDirectoryLocator::load(IODevice &input)
{
signature = input.read_int32();
if (signature != 0x07064b50)
{
throw Exception("Incorrect Zip64 End of central directory locator signature!");
}
number_of_disk_with_zip64_end_of_central_directory = input.read_int32();
relative_offset_of_zip64_end_of_central_directory = input.read_int64();
total_number_of_disks = input.read_int32();
}