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

Method write

src/3rdparty/vector_blf/src/Vector/BLF/EnvironmentVariable.cpp:36–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void EnvironmentVariable::write(AbstractFile & os) {
37 /* pre processing */
38 nameLength = static_cast<uint32_t>(name.size());
39 dataLength = static_cast<uint32_t>(data.size());
40
41 ObjectHeader::write(os);
42 os.write(reinterpret_cast<char *>(&nameLength), sizeof(nameLength));
43 os.write(reinterpret_cast<char *>(&dataLength), sizeof(dataLength));
44 os.write(reinterpret_cast<char *>(&reservedEnvironmentVariable), sizeof(reservedEnvironmentVariable));
45 os.write(const_cast<char *>(name.data()), nameLength);
46 os.write(reinterpret_cast<char *>(data.data()), dataLength);
47
48 /* skip padding */
49 os.skipp(objectSize % 4);
50}
51
52uint32_t EnvironmentVariable::calculateObjectSize() const {
53 return

Callers

nothing calls this directly

Calls 3

skippMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected