#include <stdint.h>
#include "javaclass.h"
#include "attributes.h"
Go to the source code of this file.
§ field_info
§ freeFieldAttributes()
Releases attributes used by the field_info struct.
- Parameters
-
field_info* | entry - pointer to the field_info that contains the attributes |
- Note
- This function does not free the *entry pointer, just attributes
§ getFieldMatching()
field_info* getFieldMatching |
( |
JavaClass * |
jc, |
|
|
const uint8_t * |
name, |
|
|
int32_t |
name_len, |
|
|
const uint8_t * |
descriptor, |
|
|
int32_t |
descriptor_len, |
|
|
uint16_t |
flag_mask |
|
) |
| |
§ printAllFields()
Function to print all fields of the class file.
- Parameters
-
§ readField()
Reads a field_info from the file.
- Parameters
-
JavaClass* | jc - pointer to the structure to be read |
field_info* | entry - where the data read is written |
- Returns
- char - retuns 0 if something unexpected happened or failure, 1 in case of success