14 WriteValue<uint32_t>(OutFile, this->
DatabaseId);
17 WriteValue<uint16_t>(OutFile, this->
Bones.size());
18 for (
const auto& Obj : this->
Bones)
34 ReadValue<uint16_t>(InFile, Total);
35 this->
Bones.reserve(Total);
38 for (
int i=0; i<Total; ++i)
45 this->
Bones.emplace_back(Name, Location, Rotation);
63 Walkers.push_back(Walker);
71 std::streampos PosStart = OutFile.tellp();
75 WriteValue<uint32_t>(OutFile, Total);
78 Total = Walkers.size();
79 WriteValue<uint16_t>(OutFile, Total);
82 for (uint16_t i=0; i<Total; ++i)
83 Walkers[i].
Write(OutFile);
86 std::streampos PosEnd = OutFile.tellp();
87 Total = PosEnd - PosStart -
sizeof(uint32_t);
88 OutFile.seekp(PosStart, std::ios::beg);
89 WriteValue<uint32_t>(OutFile, Total);
90 OutFile.seekp(PosEnd, std::ios::beg);
void ReadFString(std::istream &InFile, FString &OutObj)
void WriteFString(std::ostream &OutFile, const FString &InObj)
void ReadFVector(std::istream &InFile, FVector &OutObj)
void Write(std::ofstream &OutFile)
void Read(std::ifstream &InFile)
void Add(const CarlaRecorderWalkerBones &InObj)
void WriteFVector(std::ostream &OutFile, const FVector &InObj)
void Write(std::ofstream &OutFile)
std::vector< CarlaRecorderWalkerBone > Bones