Method MapArguments
MapArguments(MethodAbi, MethodAbi, Span<int>)
Computes the actual argument mapping for a specific pair of ABIs according to this argument map.
public AbiArgumentMapResult MapArguments(MethodAbi sourceAbi, MethodAbi targetAbi, Span<int> mapping)
Parameters
sourceAbiMethodAbi- The ABI of the source method.
targetAbiMethodAbi- The ABI of the target method.
mappingSpan<int>- A span to be filled with the actual mapping indices.
Returns
- AbiArgumentMapResult
- The AbiArgumentMapResult indicating the status of the mapping.
Remarks
If mapping is non-empty, it must contain at least as many elements as targetAbi
has ABI arguments. When this method returns, each element of mapping will contain the index of the argument
in sourceAbi corresponding the the argument at that position in targetAbi. If no source
argument was mapped to that target argument, the mapping element is -1.