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

Function from_mem

implementation/protocol/include/deserialize.hpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15template<typename T>
16uint32_t from_mem(unsigned char const* _mem, uint32_t _size, T& _out) {
17 static constexpr auto size = sizeof(T);
18 if (size > _size) {
19 return 0;
20 }
21 std::memcpy(&_out, _mem, size);
22 return size;
23}
24
25template<typename... Ts>
26uint32_t parse(unsigned char const* _mem, uint32_t _size, Ts&... _ts) {

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected