JVM
natives.h
Go to the documentation of this file.
1 #ifndef NATIVES_H
2 #define NATIVES_H
3 
4 #include <stdint.h>
5 #include "jvm.h"
6 
7 typedef uint8_t(*NativeFunction)(JavaVirtualMachine* jvm, Frame* frame, const uint8_t* descriptor_utf8, int32_t utf8_len);
8 
9 NativeFunction getNative(const uint8_t* className, int32_t classLen,
10  const uint8_t* methodName, int32_t methodLen,
11  const uint8_t* descriptor, int32_t descrLen);
12 
13 #endif // NATIVES_H
Structure that will be associated with a method and holds the information necessary to run the method...
Definition: framestack.h:12
NativeFunction getNative(const uint8_t *className, int32_t classLen, const uint8_t *methodName, int32_t methodLen, const uint8_t *descriptor, int32_t descrLen)
Definition: natives.c:122
uint8_t(* NativeFunction)(JavaVirtualMachine *jvm, Frame *frame, const uint8_t *descriptor_utf8, int32_t utf8_len)
Definition: natives.h:7
A java virtual machine, storing all loaded classes, created objects and frames for methods being exec...
Definition: jvm.h:104