22 WriteValue<uint32_t>(OutFile, this->
DatabaseId);
36 Events.push_back(std::move(Event));
42 WriteValue<char>(OutFile,
static_cast<char>(CarlaRecorderPacketId::EventParent));
44 std::streampos PosStart = OutFile.tellp();
48 WriteValue<uint32_t>(OutFile, Total);
52 WriteValue<uint16_t>(OutFile, Total);
54 for (uint16_t i=0; i<Total; ++i)
60 std::streampos PosEnd = OutFile.tellp();
61 Total = PosEnd - PosStart -
sizeof(uint32_t);
62 OutFile.seekp(PosStart, std::ios::beg);
63 WriteValue<uint32_t>(OutFile, Total);
64 OutFile.seekp(PosEnd, std::ios::beg);
71 std::stringstream
Info;
74 ReadValue<uint16_t>(InFile, Total);
75 for (i = 0; i < Total; ++i)
TSharedPtr< const FActorInfo > Info
const std::vector< CarlaRecorderEventParent > & GetEvents()
void Write(std::ostream &OutFile)
void Read(std::istream &InFile)
void Add(const CarlaRecorderEventParent &Event)
std::vector< CarlaRecorderEventParent > Events
uint32_t DatabaseIdParent
void Write(std::ostream &OutFile) const
void Read(std::istream &InFile)