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

One-dimensional array of strings (VT_BSTR), converted to and from multibyte text. More...

#include <HxStringSafeArray.h>

Inheritance diagram for HxStringSafeArray:
Collaboration diagram for HxStringSafeArray:

Public Member Functions

 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.
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 strings (VT_BSTR), converted to and from multibyte text.

The object is 12 bytes. The name is inferred.

Constructor & Destructor Documentation

◆ HxStringSafeArray() [1/2]

HxStringSafeArray::HxStringSafeArray ( SAFEARRAY * array)

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

Parameters
arrayThe 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
valuesThe elements.
Ghidra address:
0x10001c79

◆ ~HxStringSafeArray()

HxStringSafeArray::~HxStringSafeArray ( )

Destroy the array when the object created it.

Ghidra address:
0x10001cb1

Member Function Documentation

◆ 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
iIndexThe index.
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
iIndexThe index.
valueThe element.
Ghidra address:
0x10001e0e

◆ GetVariant()

void HxStringSafeArray::GetVariant ( VARIANT * variant)

Refer a variant to the array, without copying it.

Parameters
variantReceives the array.
Ghidra address:
0x10001ed3

◆ SetFromVector()

void HxStringSafeArray::SetFromVector ( std::vector< String > & values)

Replace the elements with those of a vector.

Parameters
valuesThe elements.
Ghidra address:
0x10001efe

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