32
32
* embedded in the MessagePack library. At runtime, Unsafe class is intentionally missing as
33
33
* MessagePack use reflection to detect it at runtime.
34
34
*/
35
- public class Unsafe
36
- {
37
- public Object allocateInstance (Class <?> clazz ) throws InstantiationException { /* null implementation */ return null ; }
35
+ public class Unsafe {
36
+
37
+ public Object allocateInstance (Class <?> clazz ) throws InstantiationException {
38
+ /* null implementation */ return null ;
39
+ }
40
+
41
+ public int arrayIndexScale (Class arrayClass ) {
42
+ /* null implementation */ return 0 ;
43
+ }
44
+
45
+ public int arrayBaseOffset (Class arrayClass ) {
46
+ /* null implementation */ return 0 ;
47
+ }
48
+
49
+ public void copyMemory (long srcAddress , long targetAddress , long length ) {
50
+ /* null implementation */
51
+ }
52
+
53
+ public void copyMemory (
54
+ byte [] src ,
55
+ long srcIndex ,
56
+ byte [] target ,
57
+ long targetIndex ,
58
+ long length
59
+ ) {
60
+ /* null implementation */
61
+ }
62
+
63
+ public void copyMemory (
64
+ Object srcBase ,
65
+ long srcOffset ,
66
+ Object destBase ,
67
+ long destOffset ,
68
+ long bytes
69
+ ) {
70
+ /* null implementation */
71
+ }
72
+
73
+ public boolean getBoolean (Object o , long offset ) {
74
+ /* null implementation */ return false ;
75
+ }
76
+
77
+ public boolean getBoolean (long address ) {
78
+ /* null implementation */ return false ;
79
+ }
80
+
81
+ public byte getByte (Object o , long offset ) {
82
+ /* null implementation */ return 0 ;
83
+ }
84
+
85
+ public byte getByte (long address ) {
86
+ /* null implementation */ return 0 ;
87
+ }
88
+
89
+ public float getFloat (Object o , long offset ) {
90
+ /* null implementation */ return 0 ;
91
+ }
92
+
93
+ public double getDouble (Object o , long offset ) {
94
+ /* null implementation */ return 0 ;
95
+ }
96
+
97
+ public short getShort (Object o , long offset ) {
98
+ /* null implementation */ return 0 ;
99
+ }
100
+
101
+ public int getInt (Object o , long offset ) {
102
+ /* null implementation */ return 0 ;
103
+ }
104
+
105
+ public int getInt (long address ) {
106
+ /* null implementation */ return 0 ;
107
+ }
108
+
109
+ public long getLong (Object o , long offset ) {
110
+ /* null implementation */ return 0 ;
111
+ }
112
+
113
+ public long getLong (long address ) {
114
+ /* null implementation */ return 0 ;
115
+ }
116
+
117
+ public Object getObject (Object o , long offset ) {
118
+ /* null implementation */ return null ;
119
+ }
120
+
121
+ public long objectFieldOffset (java .lang .reflect .Field f ) {
122
+ /* null implementation */ return 0 ;
123
+ }
124
+
125
+ public void putBoolean (Object o , long offset , boolean x ) {
126
+ /* null implementation */
127
+ }
128
+
129
+ public void putBoolean (long address , boolean x ) {
130
+ /* null implementation */
131
+ }
132
+
133
+ public void putByte (Object o , long offset , byte x ) {
134
+ /* null implementation */
135
+ }
136
+
137
+ public void putByte (long address , byte x ) {
138
+ /* null implementation */
139
+ }
140
+
141
+ public void putFloat (Object o , long offset , float x ) {
142
+ /* null implementation */
143
+ }
144
+
145
+ public void putDouble (Object o , long offset , double x ) {
146
+ /* null implementation */
147
+ }
148
+
149
+ public void putShort (Object o , long offset , short x ) {
150
+ /* null implementation */
151
+ }
152
+
153
+ public void putInt (Object o , long offset , int x ) {
154
+ /* null implementation */
155
+ }
156
+
157
+ public void putInt (long address , int x ) {
158
+ /* null implementation */
159
+ }
160
+
161
+ public void putLong (Object o , long offset , long x ) {
162
+ /* null implementation */
163
+ }
164
+
165
+ public void putLong (long address , long x ) {
166
+ /* null implementation */
167
+ }
168
+
169
+ public void putObject (Object o , long offset , Object x ) {
170
+ /* null implementation */
171
+ }
38
172
39
- public int arrayIndexScale (Class arrayClass ) { /* null implementation */ return 0 ; }
173
+ public Object staticFieldBase (java .lang .reflect .Field f ) {
174
+ /* null implementation */ return null ;
175
+ }
40
176
41
- public int arrayBaseOffset (Class arrayClass ) { /* null implementation */ return 0 ; }
177
+ public long staticFieldOffset (java .lang .reflect .Field f ) {
178
+ /* null implementation */ return 0 ;
179
+ }
42
180
43
- public void copyMemory (long srcAddress ,
44
- long targetAddress ,
45
- long length )
46
- { /* null implementation */ }
47
-
48
- public void copyMemory (byte [] src ,
49
- long srcIndex ,
50
- byte [] target ,
51
- long targetIndex ,
52
- long length )
53
- { /* null implementation */ }
54
-
55
- public void copyMemory (Object srcBase ,
56
- long srcOffset ,
57
- Object destBase ,
58
- long destOffset ,
59
- long bytes )
60
- { /* null implementation */ }
61
-
62
- public boolean getBoolean (Object o , long offset ) { /* null implementation */ return false ; }
63
-
64
- public boolean getBoolean (long address ) { /* null implementation */ return false ; }
65
-
66
- public byte getByte (Object o , long offset ) { /* null implementation */ return 0 ; }
67
-
68
- public byte getByte (long address ) { /* null implementation */ return 0 ; }
69
-
70
- public float getFloat (Object o , long offset ) { /* null implementation */ return 0 ; }
71
-
72
- public double getDouble (Object o , long offset ) { /* null implementation */ return 0 ; }
73
-
74
- public short getShort (Object o , long offset ) { /* null implementation */ return 0 ; }
75
-
76
- public int getInt (Object o , long offset ) { /* null implementation */ return 0 ; }
77
-
78
- public int getInt (long address ) { /* null implementation */ return 0 ; }
79
-
80
- public long getLong (Object o , long offset ) { /* null implementation */ return 0 ; }
81
-
82
- public long getLong (long address ) { /* null implementation */ return 0 ; }
83
-
84
- public Object getObject (Object o , long offset ) { /* null implementation */ return null ; }
85
-
86
- public long objectFieldOffset (java .lang .reflect .Field f ) { /* null implementation */ return 0 ; }
87
-
88
- public void putBoolean (Object o , long offset , boolean x ) { /* null implementation */ }
89
-
90
- public void putBoolean (long address , boolean x ) { /* null implementation */ }
91
-
92
- public void putByte (Object o , long offset , byte x ) { /* null implementation */ }
93
-
94
- public void putByte (long address , byte x ) { /* null implementation */ }
95
-
96
- public void putFloat (Object o , long offset , float x ) { /* null implementation */ }
97
-
98
- public void putDouble (Object o , long offset , double x ) { /* null implementation */ }
99
-
100
- public void putShort (Object o , long offset , short x ) { /* null implementation */ }
101
-
102
- public void putInt (Object o , long offset , int x ) { /* null implementation */ }
103
-
104
- public void putInt (long address , int x ) { /* null implementation */ }
105
-
106
- public void putLong (Object o , long offset , long x ) { /* null implementation */ }
107
-
108
- public void putLong (long address , long x ) { /* null implementation */ }
109
-
110
- public void putObject (Object o , long offset , Object x ) { /* null implementation */ }
111
-
112
- public Object staticFieldBase (java .lang .reflect .Field f ) { /* null implementation */ return null ; }
113
-
114
- public long staticFieldOffset (java .lang .reflect .Field f ) { /* null implementation */ return 0 ; }
115
-
116
- public void freeMemory (long address ) { /* null implementation */ }
117
- }
181
+ public void freeMemory (long address ) {
182
+ /* null implementation */
183
+ }
184
+ }
0 commit comments