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

Method setBinaryList

erpcgen/src/CGenerator.cpp:459–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459void CGenerator::setBinaryList(StructMember *structMember)
460{
461 DataType *dataType = structMember->getDataType();
462 if (dataType->isBinary())
463 {
464 Annotation *listLength = findAnnotation(structMember, LENGTH_ANNOTATION);
465 if (listLength)
466 {
467 BuiltinType *builtinType = dynamic_cast<BuiltinType *>(m_globals->getSymbol("uint8"));
468 assert(builtinType);
469 ListType *listType = new ListType(builtinType);
470 structMember->setDataType(listType);
471 listType->setLengthVariableName(listLength->getValueObject()->toString());
472 m_listBinaryTypes.push_back(listType);
473 }
474 }
475}
476
477void CGenerator::generate()
478{

Callers

nothing calls this directly

Calls 8

getSymbolMethod · 0.80
setLengthVariableNameMethod · 0.80
getValueObjectMethod · 0.80
push_backMethod · 0.80
getDataTypeMethod · 0.45
isBinaryMethod · 0.45
setDataTypeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected