Fix up terminology to ensure we only refer to layers not spaces.

This commit is contained in:
Mike Auty
2019-01-03 00:40:13 +00:00
parent 040da46deb
commit 6bb927ebfa
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ class Context(interfaces.context.ContextInterface):
"""A Memory object, allowing access to all data and translation layers currently available within the context"""
return self._memory
# ## Address Space Functions
# ## Translation Layer Functions
def add_layer(self, layer: interfaces.layers.DataLayerInterface) -> None:
"""Adds a named translation layer to the context
+2 -2
View File
@@ -76,9 +76,9 @@ class Intel(interfaces.layers.TranslationLayerInterface):
@classproperty
def page_size(cls) -> int:
"""Page size for the intel address space.
"""Page size for the intel memory layers
All Intel address spaces work on 4096 byte pages"""
All Intel layers work on 4096 byte pages"""
return 1 << cls._page_size_in_bits
@classproperty
+1 -1
View File
@@ -32,7 +32,7 @@ class LimeFormatException(exceptions.LayerException):
class LimeLayer(segmented.SegmentedLayer):
"""A Lime format TranslationLayer. Lime is generally used to store
physical memory images where there are large holes in the physical
address space"""
layer"""
priority = 21
+1 -1
View File
@@ -75,7 +75,7 @@ class RegistryHive(interfaces.layers.TranslationLayerInterface):
self._base_block = self.hive.BaseBlock.dereference()
self._minaddr = 0
# If there's no base_block, we don't know how big the address space is
# If there's no base_block, we don't know how big the hive layer is
# We also don't know the root_cell_offset, so we use a hardcoded value of 0x20
self._maxaddr = self._base_block.Length or 0x7fffffff
+1 -1
View File
@@ -277,7 +277,7 @@ class Pointer(Integer):
@classmethod
def _unmarshall(cls, context: interfaces.context.ContextInterface, data_format: DataFormatInfo,
object_info: ObjectInformation) -> Any:
"""Ensure that pointer values always fall within the address space of the layer they're constructed on
"""Ensure that pointer values always fall within the domain of the layer they're constructed on
If there's a need for all the data within the address, the pointer should be recast. The "pointer"
must always live within the space (even if the data provided is invalid).