From 42392a91e81b592a65b851bde1d7b236e199cbf9 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 6 Mar 2019 23:37:26 -0500 Subject: Add ability to query cross references directly on data variables --- python/types.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python/types.py') diff --git a/python/types.py b/python/types.py index 19714d54..f1c032b3 100644 --- a/python/types.py +++ b/python/types.py @@ -421,6 +421,9 @@ class Type(object): result = core.BNGetTypeStackAdjustment(self.handle) return SizeWithConfidence(result.value, confidence = result.confidence) + def __len__(self): + return self.width + def __str__(self): platform = None if self.platform is not None: -- cgit v1.3.1