Returns the length of the params, excluding the return pointer, if any.
(&self)
| 540 | /// Returns the length of the params, excluding the return pointer, |
| 541 | /// if any. |
| 542 | pub fn len_without_retptr(&self) -> usize { |
| 543 | if self.has_retptr { |
| 544 | self.len() - 1 |
| 545 | } else { |
| 546 | self.len() |
| 547 | } |
| 548 | } |
| 549 | |
| 550 | /// Returns true if the [ABISig] has an extra parameter for stack results. |
| 551 | pub fn has_retptr(&self) -> bool { |