12 lines
405 B
C++
12 lines
405 B
C++
#include "pathRecording.h"
|
|
|
|
namespace germanairlinesva_recording
|
|
{
|
|
void PathRecording::addSegment(const PathSegment &segment)
|
|
{
|
|
file.resize(file.size() + segment.getBinaryLength());
|
|
std::uint8_t *bufPtr = 6 + file.data() + count * segment.getBinaryLength();
|
|
std::memcpy(bufPtr, segment.getBinaryData(), segment.getBinaryLength());
|
|
count++;
|
|
}
|
|
} // namespace germanairlinesva_recording
|