MCPcopy Create free account
hub / github.com/KDE/labplot / read

Method read

src/3rdparty/vector_blf/src/Vector/BLF/FileStatistics.cpp:16–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace BLF {
15
16void FileStatistics::read(AbstractFile & is) {
17 is.read(reinterpret_cast<char *>(&signature), sizeof(signature));
18 if (signature != FileSignature)
19 throw Exception("FileStatistics::read(): File signature doesn't match at this position.");
20 is.read(reinterpret_cast<char *>(&statisticsSize), sizeof(statisticsSize));
21 is.read(reinterpret_cast<char *>(&apiNumber), sizeof(apiNumber));
22 is.read(reinterpret_cast<char *>(&applicationId), sizeof(applicationId));
23 is.read(reinterpret_cast<char *>(&compressionLevel), sizeof(compressionLevel));
24 is.read(reinterpret_cast<char *>(&applicationMajor), sizeof(applicationMajor));
25 is.read(reinterpret_cast<char *>(&applicationMinor), sizeof(applicationMinor));
26 is.read(reinterpret_cast<char *>(&fileSize), sizeof(fileSize));
27 is.read(reinterpret_cast<char *>(&uncompressedFileSize), sizeof(uncompressedFileSize));
28 is.read(reinterpret_cast<char *>(&objectCount), sizeof(objectCount));
29 is.read(reinterpret_cast<char *>(&applicationBuild), sizeof(applicationBuild));
30 is.read(reinterpret_cast<char *>(&measurementStartTime), sizeof(measurementStartTime));
31 is.read(reinterpret_cast<char *>(&lastObjectTime), sizeof(lastObjectTime));
32 is.read(reinterpret_cast<char *>(&restorePointsOffset), sizeof(restorePointsOffset));
33 is.read(reinterpret_cast<char *>(reservedFileStatistics.data()), static_cast<std::streamsize>(reservedFileStatistics.size() * sizeof(uint32_t)));
34}
35
36void FileStatistics::write(AbstractFile & os) {
37 os.write(reinterpret_cast<char *>(&signature), sizeof(signature));

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected