wavelength 1.0.0
Loading...
Searching...
No Matches
HxSafeArray Class Reference

One-dimensional OLE Automation array that a script host passes to or receives from the control. More...

#include <HxSafeArray.h>

Inheritance diagram for HxSafeArray:

Public Member Functions

 HxSafeArray (SAFEARRAY *array)
 Wrap an array and count its elements.
int NumItems ()
 Report the number of elements.
void Resize (int numItems)
 Change the number of elements, with a lower bound of zero.

Protected Attributes

int mNumItems
SAFEARRAY * mArray

Detailed Description

One-dimensional OLE Automation array that a script host passes to or receives from the control.

The object is 8 bytes. The class is not polymorphic, so its name and the names of its members are inferred from the source file and the assertion text.

Constructor & Destructor Documentation

◆ HxSafeArray()

HxSafeArray::HxSafeArray ( SAFEARRAY * array)

Wrap an array and count its elements.

Failing to read a bound is a failure.

Parameters
arrayThe array. It is not copied.
Ghidra address:
0x10001940

Member Function Documentation

◆ NumItems()

int HxSafeArray::NumItems ( )

Report the number of elements.

Returns
The number of elements.
Ghidra address:
0x100019e5

◆ Resize()

void HxSafeArray::Resize ( int numItems)

Change the number of elements, with a lower bound of zero.

Parameters
numItemsThe new number of elements.
Ghidra address:
0x100019f5

Member Data Documentation

◆ mNumItems

int HxSafeArray::mNumItems
protected

The number of elements.

◆ mArray

SAFEARRAY* HxSafeArray::mArray
protected

The array.


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