mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-06 17:57:38 +02:00
Objects: Avoid reconstructing pointed objects
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#
|
||||
|
||||
import collections
|
||||
import functools
|
||||
import logging
|
||||
import struct
|
||||
from typing import Any, ClassVar, Dict, List, Iterable, Optional, Tuple, Type, Union as TUnion, overload
|
||||
@@ -307,6 +308,7 @@ class Pointer(Integer):
|
||||
value = int.from_bytes(data, byteorder = endian, signed = signed)
|
||||
return value & mask
|
||||
|
||||
@functools.lru_cache(3)
|
||||
def dereference(self, layer_name: Optional[str] = None) -> interfaces.objects.ObjectInterface:
|
||||
"""Dereferences the pointer.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user