19 WriteValue<uint32_t>(OutFile, this->
DatabaseId);
31 Events.push_back(std::move(Event));
39 std::streampos PosStart = OutFile.tellp();
43 WriteValue<uint32_t>(OutFile, Total);
46 Total = Events.size();
47 WriteValue<uint16_t>(OutFile, Total);
49 for (uint16_t i=0; i<Total; ++i)
51 Events[i].Write(OutFile);
55 std::streampos PosEnd = OutFile.tellp();
56 Total = PosEnd - PosStart -
sizeof(uint32_t);
57 OutFile.seekp(PosStart, std::ios::beg);
58 WriteValue<uint32_t>(OutFile, Total);
59 OutFile.seekp(PosEnd, std::ios::beg);
68 ReadValue<uint16_t>(InFile, Total);
69 for (i = 0; i < Total; ++i)
71 EventDel.
Read(InFile);
void Write(std::ostream &OutFile)
const std::vector< CarlaRecorderEventDel > & GetEvents()
void Read(std::istream &InFile)
void Add(const CarlaRecorderEventDel &Event)
void Read(std::istream &InFile)
void Write(std::ostream &OutFile) const