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

Method write

src/3rdparty/vector_blf/src/Vector/BLF/SerialEvent.cpp:35–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void SerialEvent::write(AbstractFile & os) {
36 ObjectHeader::write(os);
37 os.write(reinterpret_cast<char *>(&flags), sizeof(flags));
38 os.write(reinterpret_cast<char *>(&port), sizeof(port));
39 os.write(reinterpret_cast<char *>(&baudrate), sizeof(baudrate));
40 os.write(reinterpret_cast<char *>(&reservedSerialEvent), sizeof(reservedSerialEvent));
41
42 if (flags & Flags::SingleByte)
43 singleByte.write(os);
44 else {
45 if (flags & Flags::CompactByte)
46 compact.write(os);
47 else
48 general.write(os);
49 }
50
51 /* skip padding */
52 os.skipp(objectSize % 4);
53}
54
55uint32_t SerialEvent::calculateObjectSize() const {
56 uint32_t size =

Callers

nothing calls this directly

Calls 1

skippMethod · 0.80

Tested by

no test coverage detected