decompiler  1.0.0
Public Member Functions | Private Attributes | List of all members
TruncationTag Class Reference

Object for describing how a space should be truncated. More...

#include <translate.hh>

Public Member Functions

void restoreXml (const Element *el)
 Restore this from XML. More...
 
const string & getName (void) const
 Get name of address space being truncated.
 
uint4 getSize (void) const
 Size (of pointers) for new truncated space.
 

Private Attributes

string spaceName
 Name of space to be truncated.
 
uint4 size
 Size truncated addresses into the space.
 

Detailed Description

Object for describing how a space should be truncated.

This can turn up in various XML configuration files and essentially acts as a command to override the size of an address space as defined by the architecture

Member Function Documentation

void TruncationTag::restoreXml ( const Element el)

Restore this from XML.

Read a <truncate_space> XML tag to configure this object

Parameters
elis the XML element

References Element::getAttributeValue(), size, and spaceName.

Referenced by GhidraTranslate::restoreXml().


The documentation for this class was generated from the following files: