get_callee_head_size

Function get_callee_head_size 

Source
pub(super) fn get_callee_head_size(callee: &Expr<'_>) -> usize
Expand description

Calculates the size the callee’s “head,” excluding its arguments.

§Examples

  • myFunction(..): 8 (length of myFunction)
  • uint256(..): 7 (length of uint256)
  • abi.encode(..): 10 (length of abi.encode)
  • foo(..).bar(..): 3 (length of foo)