JVM
readfunctions.c File Reference
#include "readfunctions.h"
#include "utf8.h"
#include "validity.h"
#include <math.h>
Include dependency graph for readfunctions.c:

Functions

uint8_t readu4 (JavaClass *jc, uint32_t *out)
 Reads a four-byte unsigned integer from the JavaClass file. More...
 
uint8_t readu2 (JavaClass *jc, uint16_t *out)
 Reads a two-byte unsigned integer from the JavaClass file. More...
 
int32_t readFieldDescriptor (uint8_t *utf8_bytes, int32_t utf8_len, char checkValidClassIdentifier)
 
int32_t readMethodDescriptor (uint8_t *utf8_bytes, int32_t utf8_len, char checkValidClassIdentifier)
 
float readFloatFromUint32 (uint32_t value)
 
double readDoubleFromUint64 (uint64_t value)
 

Function Documentation

§ readDoubleFromUint64()

double readDoubleFromUint64 ( uint64_t  value)
Here is the caller graph for this function:

§ readFieldDescriptor()

int32_t readFieldDescriptor ( uint8_t *  utf8_bytes,
int32_t  utf8_len,
char  checkValidClassIdentifier 
)
Here is the call graph for this function:
Here is the caller graph for this function:

§ readFloatFromUint32()

float readFloatFromUint32 ( uint32_t  value)
Here is the caller graph for this function:

§ readMethodDescriptor()

int32_t readMethodDescriptor ( uint8_t *  utf8_bytes,
int32_t  utf8_len,
char  checkValidClassIdentifier 
)
Here is the call graph for this function:
Here is the caller graph for this function:

§ readu2()

uint8_t readu2 ( JavaClass jc,
uint16_t *  out 
)

Reads a two-byte unsigned integer from the JavaClass file.

Parameters
JavaClass*jc - poiter to an already open JavaClass file
[out]uint16_t*out - pointer to variable that will receive the value read, if non null.
Returns
1 in case of success, 0 in case of failure
Here is the caller graph for this function:

§ readu4()

uint8_t readu4 ( JavaClass jc,
uint32_t *  out 
)

Reads a four-byte unsigned integer from the JavaClass file.

Parameters
JavaClass*jc - poiter to an already open JavaClass file
[out]uint32_t*out - pointer to variable that will receive the value read, if non null.
Returns
1 in case of success, 0 in case of failure
Here is the caller graph for this function: