-
Notifications
You must be signed in to change notification settings - Fork 2
/
javaConst.py
44 lines (29 loc) · 900 Bytes
/
javaConst.py
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
34
35
36
37
38
39
40
41
42
43
44
baseWireHandle = 0x7E0000
STREAM_MAGIC = 'ac ed'
STREAM_VERSION = 5
SC_WRITE_METHOD = 0x01 #; //if SC_SERIALIZABLE
SC_BLOCK_DATA = 0x08 #; //if SC_EXTERNALIZABLE
SC_SERIALIZABLE = 0x02
SC_EXTERNALIZABLE = 0x04
SC_ENUM = 0x10
TC_NULL = 0x70
TC_REFERENCE = 0x71
TC_CLASSDESC = 0x72
TC_OBJECT = 0x73
TC_STRING = 0x74
TC_ARRAY = 0x75
TC_CLASS = 0x76
TC_BLOCKDATA = 0x77
TC_ENDBLOCKDATA = 0x78
TC_RESET = 0x79
TC_BLOCKDATALONG = 0x7A
TC_EXCEPTION = 0x7B
TC_LONGSTRING = 0x7C
TC_PROXYCLASSDESC = 0x7D
TC_ENUM = 0x7E
prim_typecode_chr = ['B','C','D','F','I','J','S','Z']
obj_typecode_chr = ['[','L']
prim_typecode = [ord(x) for x in prim_typecode_chr]
obj_typecode = [ord(x) for x in obj_typecode_chr]
TYPECODE_ARRAY = ord('[')
TYPECODE_OBJECT = ord('L')