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

Method write

src/3rdparty/vector_blf/src/Vector/BLF/AppText.cpp:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void AppText::write(AbstractFile & os) {
30 /* pre processing */
31 textLength = static_cast<uint32_t>(text.size());
32
33 ObjectHeader::write(os);
34 os.write(reinterpret_cast<char *>(&source), sizeof(source));
35 os.write(reinterpret_cast<char *>(&reservedAppText1), sizeof(reservedAppText1));
36 os.write(reinterpret_cast<char *>(&textLength), sizeof(textLength));
37 os.write(reinterpret_cast<char *>(&reservedAppText2), sizeof(reservedAppText2));
38 os.write(const_cast<char *>(text.data()), textLength);
39
40 /* skip padding */
41 os.skipp(objectSize % 4);
42}
43
44uint32_t AppText::calculateObjectSize() const {
45 return

Callers

nothing calls this directly

Calls 3

skippMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected