![]() |
ATLAS Offline Software
|
Collection of helper functions for raw pointer operations on the bytestream payload. More...
Typedefs | |
| using | TDA = TriggerEDMDeserialiserAlg |
Functions | |
| constexpr CLID | collectionCLID (TDA::PayloadIterator start) |
| CLID of the collection stored in the next fragment. | |
| constexpr size_t | nameLength (TDA::PayloadIterator start) |
| Length of the serialised name payload. | |
| constexpr size_t | dataSize (TDA::PayloadIterator start) |
| Size in bytes of the buffer that is needed to decode next fragment data content. | |
| constexpr TDA::PayloadIterator | toNextFragment (TDA::PayloadIterator start) |
| Returns starting point of the next fragment, can be == end() | |
| std::vector< std::string > | collectionDescription (TDA::PayloadIterator start) |
| String description of the collection stored in the next fragment, returns persistent type name and the SG key. | |
| void | toBuffer (TDA::PayloadIterator start, char *buffer) |
Copies fragment to the buffer, no size checking, use dataSize to do so. | |
Collection of helper functions for raw pointer operations on the bytestream payload.
Most functions can be constexpr if the compiler implements ConstexprIterator (P0858R0) Tested it works in clang9 (and 10 and 11?) regardless of –std flag and in gcc10+ only with –std=c++20 But clang12 requires –std=c++20. TODO: Remove the C++ version checks when the release is built with –std=c++20 or newer
Definition at line 166 of file TriggerEDMDeserialiserAlg.cxx.
|
constexpr |
CLID of the collection stored in the next fragment.
Definition at line 169 of file TriggerEDMDeserialiserAlg.cxx.
| std::vector< std::string > PayloadHelpers::collectionDescription | ( | TDA::PayloadIterator | start | ) |
String description of the collection stored in the next fragment, returns persistent type name and the SG key.
Definition at line 193 of file TriggerEDMDeserialiserAlg.cxx.
|
constexpr |
Size in bytes of the buffer that is needed to decode next fragment data content.
Definition at line 179 of file TriggerEDMDeserialiserAlg.cxx.
|
constexpr |
Length of the serialised name payload.
Definition at line 174 of file TriggerEDMDeserialiserAlg.cxx.
| void PayloadHelpers::toBuffer | ( | TDA::PayloadIterator | start, |
| char * | buffer ) |
Copies fragment to the buffer, no size checking, use dataSize to do so.
Definition at line 201 of file TriggerEDMDeserialiserAlg.cxx.
|
constexpr |
Returns starting point of the next fragment, can be == end()
Intended to be used like this: start = advance(start); if ( start != data.end() )... decode else ... done
Definition at line 188 of file TriggerEDMDeserialiserAlg.cxx.