One-dimensional array of strings (VT_BSTR), converted to and from multibyte text.
More...
#include <HxStringSafeArray.h>
|
| | HxStringSafeArray (SAFEARRAY *array) |
| | Wrap an array, or create an empty one that the object destroys.
|
| | HxStringSafeArray (std::vector< String > &values) |
| | Create an array that the object destroys, with the elements of a vector.
|
| | ~HxStringSafeArray () |
| | Destroy the array when the object created it.
|
| String | Get (long iIndex) |
| | Read an element, at most 499 characters of it.
|
| void | Set (long iIndex, const char *value) |
| | Write an element.
|
| void | GetVariant (VARIANT *variant) |
| | Refer a variant to the array, without copying it.
|
| void | SetFromVector (std::vector< String > &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 strings (VT_BSTR), converted to and from multibyte text.
The object is 12 bytes. The name is inferred.
◆ HxStringSafeArray() [1/2]
| HxStringSafeArray::HxStringSafeArray |
( |
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:
- 0x10001c2a
◆ HxStringSafeArray() [2/2]
| HxStringSafeArray::HxStringSafeArray |
( |
std::vector< String > & | values | ) |
|
Create an array that the object destroys, with the elements of a vector.
- Parameters
-
- Ghidra address:
- 0x10001c79
◆ ~HxStringSafeArray()
| HxStringSafeArray::~HxStringSafeArray |
( |
| ) |
|
Destroy the array when the object created it.
- Ghidra address:
- 0x10001cb1
◆ Get()
| String HxStringSafeArray::Get |
( |
long | iIndex | ) |
|
Read an element, at most 499 characters of it.
An index past the end, or text that does not convert, is a failure.
- Parameters
-
- Returns
- The element.
- Ghidra address:
- 0x10001cd5
◆ Set()
| void HxStringSafeArray::Set |
( |
long | iIndex, |
|
|
const char * | value ) |
Write an element.
An index past the end is a failure.
- Parameters
-
| iIndex | The index. |
| value | The element. |
- Ghidra address:
- 0x10001e0e
◆ GetVariant()
| void HxStringSafeArray::GetVariant |
( |
VARIANT * | variant | ) |
|
Refer a variant to the array, without copying it.
- Parameters
-
| variant | Receives the array. |
- Ghidra address:
- 0x10001ed3
◆ SetFromVector()
| void HxStringSafeArray::SetFromVector |
( |
std::vector< String > & | values | ) |
|
Replace the elements with those of a vector.
- Parameters
-
- Ghidra address:
- 0x10001efe
The documentation for this class was generated from the following file: