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

Method write

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

Source from the content-addressed store, hash-verified

31}
32
33void TestStructure::write(AbstractFile & os) {
34 /* pre processing */
35 executingObjectNameLength = static_cast<uint32_t>(executingObjectName.size());
36 nameLength = static_cast<uint32_t>(name.size());
37 textLength = static_cast<uint32_t>(text.size());
38
39 ObjectHeader::write(os);
40 os.write(reinterpret_cast<char *>(&executionObjectIdentify), sizeof(executionObjectIdentify));
41 os.write(reinterpret_cast<char *>(&type), sizeof(type));
42 os.write(reinterpret_cast<char *>(&reservedTestStructure), sizeof(reservedTestStructure));
43 os.write(reinterpret_cast<char *>(&uniqueNo), sizeof(uniqueNo));
44 os.write(reinterpret_cast<char *>(&action), sizeof(action));
45 os.write(reinterpret_cast<char *>(&result), sizeof(result));
46 os.write(reinterpret_cast<char *>(&executingObjectNameLength), sizeof(executingObjectNameLength));
47 os.write(reinterpret_cast<char *>(&nameLength), sizeof(nameLength));
48 os.write(reinterpret_cast<char *>(&textLength), sizeof(textLength));
49 os.write(const_cast<char *>(reinterpret_cast<const char *>(executingObjectName.data())), executingObjectNameLength * sizeof(char16_t));
50 os.write(const_cast<char *>(reinterpret_cast<const char *>(name.data())), nameLength * sizeof(char16_t));
51 os.write(const_cast<char *>(reinterpret_cast<const char *>(text.data())), textLength * sizeof(char16_t));
52}
53
54uint32_t TestStructure::calculateObjectSize() const {
55 return

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected