forked from cintialr/JVM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclassFile.h
More file actions
33 lines (26 loc) · 703 Bytes
/
classFile.h
File metadata and controls
33 lines (26 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* Estrutura interna de arquivo .class */
#ifndef CLASSFILE_H
#define CLASSFILE_H
#include "estruturas.h"
/*
Estrutura ClassFile
*/
typedef struct{
u4 magic;
u2 minor_version;
u2 major_version;
u2 constant_pool_count;
cp_info *constant_pool; // [constant_pool_count-1]
u2 access_flags;
u2 this_class;
u2 super_class;
u2 interfaces_count;
u2 *interfaces; // [interfaces_count]
u2 fields_count;
field_info *fields; // [fileds_count]
u2 methods_count;
method_info *methods; // [methods_count]
u2 attributes_count;
attribute_info ** attributes; // [attributes_count]
}ClassFile;
#endif