The StructureMapper class.
More...
The StructureMapper class.
A structure mapper object maps the structures of a grammar to a file (ByteView / ByteArray).
- Author
- Andreas Pehnack
- Date
- 2009-08-16
Current byte array being processed.
- Author
- Andreas Pehnack
- Date
- 2012-12-22
- Returns
- Current byte array
Current byte view being processed.
- Author
- Andreas Pehnack
- Date
- 2011-10-17
- Returns
- Current byte view
Current structure element being mapped. This is of course the scripting element...
- Author
- Andreas Pehnack
- Date
- 2011-10-14
- Returns
- Current structure element
Current grammar being processed.
- Author
- Andreas Pehnack
- Date
- 2011-10-17
- Returns
- Current grammar
Current log source used for output.
- Author
- Andreas Pehnack
- Date
- 2011-10-17
- Returns
- Current log source
long getCurrentOffset |
( |
| ) |
|
Current file offset of the mapping operation.
- Author
- Andreas Pehnack
- Date
- 2011-10-14
- Returns
- Current file offset
long getCurrentRemainingSize |
( |
| ) |
|
Current remaining size of the mapping operation.
- Author
- Andreas Pehnack
- Date
- 2011-10-14
- Returns
- Current remaining size
Current results used while mapping structures.
- Author
- Andreas Pehnack
- Date
- 2011-10-17
- Returns
- Current results
Current structure being mapped.
- Author
- Andreas Pehnack
- Date
- 2011-10-14
- Returns
- Current structure
ENDIAN_TYPE getDynamicEndianness |
( |
| ) |
|
Get dynamic endianness. This endianness is by structure elements having set their endianness to dynamic.
- Author
- Andreas Pehnack
- Date
- 2011-10-18
- Returns
- The endianness currently used
long mapElementWithSize |
( |
Element |
element, |
|
|
int |
maxSize |
|
) |
| |
Map an element at the current position to a file. The maximum length the element may take is also passed.
- Author
- Andreas Pehnack
- Date
- 2012-02-05
- Parameters
-
[in] | element | The element to be applied |
[in] | maxSize | The maximum size the element may have |
- Returns
- Number of mapped bytes
Map a structure at the current position to a file. The length of the structure is added in the results to the enclosing structure.
- Author
- Andreas Pehnack
- Date
- 2011-10-12
- Parameters
-
[in] | structure | The structure to apply |
- Returns
- Number of mapped bytes
long mapStructureAtPosition |
( |
Structure |
structure, |
|
|
long |
position, |
|
|
long |
size |
|
) |
| |
Map a structure at the given position to a file. The length of the structure is not added in the results to the enclosing structure.
- Author
- Andreas Pehnack
- Date
- 2011-10-12
- Parameters
-
[in] | structure | The structure to apply |
[in] | position | Where to apply the structure |
[in] | size | Maximum space the structure can consume |
- Returns
- Number of mapped bytes
void setCurrentOffset |
( |
unsigned long |
offset | ) |
|
Set current file offset of the mapping operation.
- Author
- Andreas Pehnack
- Date
- 2012-01-19
- Parameters
-
[in] | offset | New offset to continue processing after script |
long setDynamicEndianness |
( |
ENDIAN_TYPE |
endianness | ) |
|
Set dynamic endianness. This endianness will be used by structure elements having set their endianness to dynamic.
- Author
- Andreas Pehnack
- Date
- 2011-10-18
- Parameters
-
[in] | endianness | The endianness to use from now on |
The documentation for this class was generated from the following file:
- Generated/synalysis_wrap_lua.c