MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / lengthExpr

Method lengthExpr

tools/ipc_codegen/ipc_codegen.cpp:1035–1042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1033 }
1034
1035 static std::string lengthExpr(const Field& field,
1036 const std::vector<Field>& sideFields,
1037 const std::vector<std::string>& external) {
1038 if (containsField(sideFields, field.lenRef))
1039 return "detail::ByteCount(" + field.lenRef + "())";
1040 if (containsName(external, field.lenRef)) return field.lenRef + "_";
1041 return "0";
1042 }
1043
1044 static std::string offsetExpr(const std::vector<Field>& fields,
1045 size_t index,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected