MCPcopy Create free account
hub / github.com/COVESA/vsomeip / get_message_size

Method get_message_size

implementation/utility/src/utility.cpp:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76uint64_t utility::get_message_size(const byte_t* _data, size_t _size) {
77 uint64_t its_size(0);
78 if (VSOMEIP_SOMEIP_HEADER_SIZE <= _size) {
79 its_size = VSOMEIP_SOMEIP_HEADER_SIZE + bithelper::read_uint32_be(&_data[4]);
80 }
81 return its_size;
82}
83
84uint32_t utility::get_payload_size(const byte_t* _data, uint32_t _size) {
85 if (_size <= VSOMEIP_FULL_HEADER_SIZE)

Callers 1

TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected