decompiler  1.0.0
Public Member Functions | Public Attributes | List of all members
ghidra::ContextInternal::FreeArray Struct Reference

A context blob, holding context values across some range of code addresses. More...

Public Member Functions

 FreeArray (void)
 Construct an empty context blob.
 
 ~FreeArray (void)
 Destructor.
 
void reset (int4 sz)
 Resize the context blob, preserving old values. More...
 
FreeArrayoperator= (const FreeArray &op2)
 Assignment operator. More...
 

Public Attributes

uintm * array
 The "array of words" holding context variable values.
 
uintm * mask
 The mask array indicating which variables are explicitly set.
 
int4 size
 The number of words in the array.
 

Detailed Description

A context blob, holding context values across some range of code addresses.

This is an internal object that allocates the actual "array of words" for a context blob. An associated mask array holds 1-bits for context variables that were explicitly set for the specific split point.

Member Function Documentation

◆ operator=()

ContextInternal::FreeArray & ghidra::ContextInternal::FreeArray::operator= ( const FreeArray op2)

Assignment operator.

Clone a context blob into this.

Parameters
op2is the context blob being cloned/copied
Returns
a reference to this

References array, ghidra::ContextBitRange::mask, and size.

◆ reset()

void ghidra::ContextInternal::FreeArray::reset ( int4  sz)

Resize the context blob, preserving old values.

The "array of words" and mask array are resized to the given value. Old values are preserved, chopping off the last values, or appending zeroes, as needed.

Parameters
szis the new number of words to resize array to

References ghidra::ContextBitRange::mask.


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