Template Struct ChunkReceiverData

Inheritance Relationships

Base Type

  • public ChunkQueueDataType

Struct Documentation

template<uint32_t MaxChunksHeldSimultaneously, typename ChunkQueueDataType>
struct ChunkReceiverData : public ChunkQueueDataType

Public Types

using ChunkQueueData_t = ChunkQueueDataType

Public Functions

explicit ChunkReceiverData(const cxx::VariantQueueTypes queueType, const QueueFullPolicy queueFullPolicy, const mepoo::MemoryInfo &memoryInfo = mepoo::MemoryInfo()) noexcept

Public Members

mepoo::MemoryInfo m_memoryInfo
UsedChunkList<MAX_CHUNKS_IN_USE> m_chunksInUse

Public Static Attributes

static constexpr uint32_t MAX_CHUNKS_IN_USE = MaxChunksHeldSimultaneously + 1U

we use one more than MaxChunksHeldSimultaneously for being able to provide one new chunk to the user if they already have the allowed MaxChunksHeldSimultaneously. But then the user has to return one to not brake the contract. This is aligned with AUTOSAR Adaptive ara::com