diff --git a/dexlib/src/main/java/org/jf/dexlib/CodeItem.java b/dexlib/src/main/java/org/jf/dexlib/CodeItem.java index 97801bd3..e56bfb58 100644 --- a/dexlib/src/main/java/org/jf/dexlib/CodeItem.java +++ b/dexlib/src/main/java/org/jf/dexlib/CodeItem.java @@ -364,6 +364,20 @@ public class CodeItem extends Item { return debugInfo; } + /** + * @return the number of 2-byte words that the parameters to the method containing this code take + */ + public int getInWords() { + return inWords; + } + + /** + * @return the maximum number of 2-byte words for the arguments of any method call in this code + */ + public int getOutWords() { + return outWords; + } + /** * Sets the MethodIdItem of the method that this CodeItem is associated with * @param encodedMethod the EncodedMethod of the method that this CodeItem is associated