mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-12 04:37:38 +02:00
Allow the size of array to be changed (may override an existing count member).
This commit is contained in:
@@ -331,6 +331,16 @@ class Array(interfaces.objects.ObjectInterface, abc.Sequence):
|
||||
self._vol['count'] = self._check_type(count, int)
|
||||
self._vol['subtype'] = subtype
|
||||
|
||||
@property
|
||||
def count(self):
|
||||
"""Returns the count dynamically"""
|
||||
return self._vol['count']
|
||||
|
||||
@count.setter
|
||||
def count(self, value):
|
||||
"""Sets the count to a specific value"""
|
||||
self._vol['count'] = self._check_type(value, int)
|
||||
|
||||
class VolTemplateProxy(interfaces.objects.ObjectInterface.VolTemplateProxy):
|
||||
@classmethod
|
||||
def size(cls, template):
|
||||
|
||||
Reference in New Issue
Block a user