| 288 | } |
| 289 | |
| 290 | void 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 | |
| 308 | void BasicCodec::readString(uint32_t &length, char **value) |
| 309 | { |