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

Method read

src/3rdparty/vector_blf/src/Vector/BLF/TestStructure.cpp:14–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void TestStructure::read(AbstractFile & is) {
15 ObjectHeader::read(is);
16 is.read(reinterpret_cast<char *>(&executionObjectIdentify), sizeof(executionObjectIdentify));
17 is.read(reinterpret_cast<char *>(&type), sizeof(type));
18 is.read(reinterpret_cast<char *>(&reservedTestStructure), sizeof(reservedTestStructure));
19 is.read(reinterpret_cast<char *>(&uniqueNo), sizeof(uniqueNo));
20 is.read(reinterpret_cast<char *>(&action), sizeof(action));
21 is.read(reinterpret_cast<char *>(&result), sizeof(result));
22 is.read(reinterpret_cast<char *>(&executingObjectNameLength), sizeof(executingObjectNameLength));
23 is.read(reinterpret_cast<char *>(&nameLength), sizeof(nameLength));
24 is.read(reinterpret_cast<char *>(&textLength), sizeof(textLength));
25 executingObjectName.resize(executingObjectNameLength);
26 is.read(const_cast<char *>(reinterpret_cast<const char *>(executingObjectName.data())), executingObjectNameLength * sizeof(char16_t));
27 name.resize(nameLength);
28 is.read(const_cast<char *>(reinterpret_cast<const char *>(name.data())), nameLength * sizeof(char16_t));
29 text.resize(textLength);
30 is.read(const_cast<char *>(reinterpret_cast<const char *>(text.data())), textLength * sizeof(char16_t));
31}
32
33void TestStructure::write(AbstractFile & os) {
34 /* pre processing */

Callers

nothing calls this directly

Calls 3

readFunction · 0.85
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected