Check sizeof sensor header

This commit is contained in:
nsubiron 2018-09-30 11:11:35 +02:00
parent fb68143559
commit c84eb298e7
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ namespace carla {
namespace sensor { namespace sensor {
namespace s11n { namespace s11n {
static_assert(
SensorHeaderSerializer::header_offset == 2u * 8u + 6u * 4u,
"Header size missmatch");
static Buffer PopBufferFromPool() { static Buffer PopBufferFromPool() {
static auto pool = std::make_shared<BufferPool>(); static auto pool = std::make_shared<BufferPool>();
return pool->Pop(); return pool->Pop();