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

Method appendDataSize

libyul/backends/evm/EthAssemblyAdapter.cpp:195–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void EthAssemblyAdapter::appendDataSize(std::vector<AbstractAssembly::SubID> const& _subPath)
196{
197 if (auto it = m_dataHashBySubId.find(_subPath[0]); it != m_dataHashBySubId.end())
198 {
199 yulAssert(_subPath.size() == 1, "");
200 m_assembly << u256(m_assembly.data(h256(it->second)).size());
201 return;
202 }
203
204 m_assembly.pushSubroutineSize(m_assembly.encodeSubPath(_subPath));
205}
206
207AbstractAssembly::SubID EthAssemblyAdapter::appendData(bytes const& _data)
208{

Callers

nothing calls this directly

Calls 6

encodeSubPathMethod · 0.80
findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45
pushSubroutineSizeMethod · 0.45

Tested by

no test coverage detected