MCPcopy Create free account
hub / github.com/argotorg/solidity / numVariablesForType

Method numVariablesForType

libsolidity/codegen/ABIFunctions.cpp:1550–1556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1548}
1549
1550size_t ABIFunctions::numVariablesForType(Type const& _type, EncodingOptions const& _options)
1551{
1552 if (_type.category() == Type::Category::Function && !_options.encodeFunctionFromStack)
1553 return 1;
1554 else
1555 return _type.sizeOnStack();
1556}
1557
1558std::string ABIFunctions::revertReasonIfDebugFunction(std::string const& _message)
1559{

Callers

nothing calls this directly

Calls 2

categoryMethod · 0.45
sizeOnStackMethod · 0.45

Tested by

no test coverage detected