[Sol->Yul] Adding slicing for call data arrays

This commit is contained in:
Djordje Mijovic
2020-03-13 13:40:38 +01:00
parent a1cc2504ba
commit 96d278b101
6 changed files with 168 additions and 20 deletions
+5
View File
@@ -175,6 +175,11 @@ public:
/// signature: (baseRef, index) -> offset[, length]
std::string calldataArrayIndexAccessFunction(ArrayType const& _type);
/// @returns the name of a function that returns offset and length for array slice
/// for the given array offset, length and start and end indices for slice
/// signature: (arrayOffset, arrayLength, sliceStart, sliceEnd) -> offset, length
std::string calldataArrayIndexRangeAccess(ArrayType const& _type);
/// @returns the name of a function that follows a calldata tail while performing
/// bounds checks.
/// signature: (baseRef, tailPointer) -> offset[, length]