MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / readPtr

Method readPtr

erpc_c/infra/erpc_basic_codec.cpp:290–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290void BasicCodec::readPtr(uintptr_t &value)
291{
292 uint8_t ptrSize;
293
294 read(ptrSize);
295
296 if (ptrSize > sizeof(value))
297 {
298 updateStatus(kErpcStatus_BadAddressScale);
299 }
300
301 readData(ptrSize, &value);
302 if (isStatusOk())
303 {
304 ERPC_READ_AGNOSTIC_PTR(*value);
305 }
306}
307
308void BasicCodec::readString(uint32_t &length, char **value)
309{

Callers 1

readSharedAddressMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected