One-dimensional array of 32-bit integers (VT_I4).
More...
#include <HxLongSafeArray.h>
|
| | 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.
|
| | 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.
|
One-dimensional array of 32-bit integers (VT_I4).
The object is 12 bytes. The name is inferred.
◆ HxLongSafeArray() [1/2]
| HxLongSafeArray::HxLongSafeArray |
( |
SAFEARRAY * | array | ) |
|
Wrap an array, or create an empty one that the object destroys.
- Parameters
-
| array | The 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
-
- Ghidra address:
- 0x10001a79
◆ ~HxLongSafeArray()
| HxLongSafeArray::~HxLongSafeArray |
( |
| ) |
|
Destroy the array when the object created it.
- Ghidra address:
- 0x10001ab1
◆ Get()
| long HxLongSafeArray::Get |
( |
long | iIndex | ) |
|
Read an element.
An index past the end is a failure.
- Parameters
-
- 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
-
| iIndex | The index. |
| value | The element. |
- Ghidra address:
- 0x10001b3e
◆ GetVariant()
| void HxLongSafeArray::GetVariant |
( |
VARIANT * | variant | ) |
|
Refer a variant to the array, without copying it.
- Parameters
-
| variant | Receives the array. |
- Ghidra address:
- 0x10001ba2
◆ SetFromVector()
| void HxLongSafeArray::SetFromVector |
( |
std::vector< int > & | values | ) |
|
Replace the elements with those of a vector.
- Parameters
-
- Ghidra address:
- 0x10001bcd
The documentation for this class was generated from the following file: