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

Method readFromStorage

libsolidity/codegen/YulUtilFunctions.cpp:2779–2794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2777}
2778
2779std::string YulUtilFunctions::readFromStorage(
2780 Type const& _type,
2781 size_t _offset,
2782 bool _splitFunctionTypes,
2783 VariableDeclaration::Location _location
2784)
2785{
2786 if (_type.isValueType())
2787 return readFromStorageValueType(_type, _offset, _splitFunctionTypes, _location);
2788 else
2789 {
2790 solAssert(_location != VariableDeclaration::Location::Transient);
2791 solAssert(_offset == 0, "");
2792 return readFromStorageReferenceType(_type);
2793 }
2794}
2795
2796std::string YulUtilFunctions::readFromStorageDynamic(
2797 Type const& _type,

Callers 3

readFromLValueMethod · 0.80
generateGetterMethod · 0.80

Calls 1

isValueTypeMethod · 0.45

Tested by

no test coverage detected