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

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

#include <translate.hh>

Public Member Functions

void decode (Decoder &decoder)
 Restore this from a stream. 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

◆ decode()

void ghidra::TruncationTag::decode ( Decoder decoder)

Restore this from a stream.

Parse a <truncate_space> element to configure this object

Parameters
decoderis the stream decoder

References ghidra::Decoder::closeElement(), ghidra::Decoder::openElement(), ghidra::Decoder::readString(), ghidra::Decoder::readUnsignedInteger(), size, and spaceName.

Referenced by ghidra::GhidraTranslate::decode().


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