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

One-dimensional array of 32-bit integers (VT_I4). More...

#include <HxLongSafeArray.h>

Inheritance diagram for HxLongSafeArray:
Collaboration diagram for HxLongSafeArray:

Public Member Functions

 HxLongSafeArray (SAFEARRAY *array)
 Wrap an array, or create an empty one that the object destroys.
 HxLongSafeArray (std::vector< int > &values)
 Create an array that the object destroys, with the elements of a vector.
 ~HxLongSafeArray ()
 Destroy the array when the object created it.
long Get (long iIndex)
 Read an element.
void Set (long iIndex, long value)
 Write an element.
void GetVariant (VARIANT *variant)
 Refer a variant to the array, without copying it.
void SetFromVector (std::vector< int > &values)
 Replace the elements with those of a vector.
Public Member Functions inherited from HxSafeArray
 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.

Additional Inherited Members

Protected Attributes inherited from HxSafeArray
int mNumItems
SAFEARRAY * mArray

Detailed Description

One-dimensional array of 32-bit integers (VT_I4).

The object is 12 bytes. The name is inferred.

Constructor & Destructor Documentation

◆ HxLongSafeArray() [1/2]

HxLongSafeArray::HxLongSafeArray ( SAFEARRAY * array)

Wrap an array, or create an empty one that the object destroys.

Parameters
arrayThe array, or null to create one.
Ghidra address:
0x10001a2a

◆ HxLongSafeArray() [2/2]

HxLongSafeArray::HxLongSafeArray ( std::vector< int > & values)

Create an array that the object destroys, with the elements of a vector.

Parameters
valuesThe elements.
Ghidra address:
0x10001a79

◆ ~HxLongSafeArray()

HxLongSafeArray::~HxLongSafeArray ( )

Destroy the array when the object created it.

Ghidra address:
0x10001ab1

Member Function Documentation

◆ Get()

long HxLongSafeArray::Get ( long iIndex)

Read an element.

An index past the end is a failure.

Parameters
iIndexThe index.
Returns
The element.
Ghidra address:
0x10001ad5

◆ Set()

void HxLongSafeArray::Set ( long iIndex,
long value )

Write an element.

An index past the end is a failure.

Parameters
iIndexThe index.
valueThe element.
Ghidra address:
0x10001b3e

◆ GetVariant()

void HxLongSafeArray::GetVariant ( VARIANT * variant)

Refer a variant to the array, without copying it.

Parameters
variantReceives the array.
Ghidra address:
0x10001ba2

◆ SetFromVector()

void HxLongSafeArray::SetFromVector ( std::vector< int > & values)

Replace the elements with those of a vector.

Parameters
valuesThe elements.
Ghidra address:
0x10001bcd

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