General array of records with simple iteration support. More...
#include <mi32/recordarray.h>

Classes | |
| class | RECORD |
| Record in array with iteration capability. More... | |
Public Member Functions | |
| RECORDARRAY (UINT32 RecordSize=1) | |
| ~RECORDARRAY () | |
| UINT32 | GetNumRecords () const |
| UINT8 * | GetPtrBuffer () |
| const UINT8 * | GetPtrBuffer () const |
| UINT8 * | GetPtrRecord (UINT32 idx) |
| const UINT8 * | GetPtrRecord (UINT32 idx) const |
| UINT32 | GetRecordSize () const |
| ERRVALUE | Resize (UINT32 NumRecords) |
| void | SetRecordSize (UINT32 RecordSize) |
General array of records with simple iteration support.
| RECORDARRAY::RECORDARRAY | ( | UINT32 | RecordSize = 1 |
) | [explicit] |
Construct with optional record size.
| RecordSize | Record size, cannot be 0 |
| RECORDARRAY::~RECORDARRAY | ( | ) |
Destructor.
| UINT32 RECORDARRAY::GetNumRecords | ( | ) | const [inline] |
Get number of records.
| UINT8* RECORDARRAY::GetPtrBuffer | ( | ) | [inline] |
Get (non-const) pointer to start of buffer.
| const UINT8* RECORDARRAY::GetPtrBuffer | ( | ) | const [inline] |
Get (const) pointer to start of buffer.
Get (non-const) pointer to start of buffer.
Get (const) pointer to record at specified index.
| UINT32 RECORDARRAY::GetRecordSize | ( | ) | const [inline] |
Get size of record.
Resize array.
All RECORD instances referencing this array will become invalid. Product of number of records and record size must be less than 2^32.
| NumRecords | Number of records |
| void RECORDARRAY::SetRecordSize | ( | UINT32 | RecordSize | ) |
Set record size.
Number of records will be reset to 0.
| RecordSize | Record size, cannot be 0 |
1.6.1