@@ -137,7 +137,7 @@ public long indexOf(long offset, byte value) {
137137 * @param length number of elements from native pointer that must be copied
138138 */
139139 public void read (long offset , byte [] buf , int index , int length ) {
140- Native .read (this , this .peer , offset , buf , index , length );
140+ Native .readBytes (this , this .peer , offset , buf , index , length );
141141 }
142142
143143 /**
@@ -150,7 +150,7 @@ public void read(long offset, byte[] buf, int index, int length) {
150150 * @param length number of elements from native pointer that must be copied
151151 */
152152 public void read (long offset , short [] buf , int index , int length ) {
153- Native .read (this , this .peer , offset , buf , index , length );
153+ Native .readShorts (this , this .peer , offset , buf , index , length );
154154 }
155155
156156 /**
@@ -163,7 +163,7 @@ public void read(long offset, short[] buf, int index, int length) {
163163 * @param length number of elements from native pointer that must be copied
164164 */
165165 public void read (long offset , char [] buf , int index , int length ) {
166- Native .read (this , this .peer , offset , buf , index , length );
166+ Native .readChars (this , this .peer , offset , buf , index , length );
167167 }
168168
169169 /**
@@ -176,7 +176,7 @@ public void read(long offset, char[] buf, int index, int length) {
176176 * @param length number of elements from native pointer that must be copied
177177 */
178178 public void read (long offset , int [] buf , int index , int length ) {
179- Native .read (this , this .peer , offset , buf , index , length );
179+ Native .readInts (this , this .peer , offset , buf , index , length );
180180 }
181181
182182 /**
@@ -189,7 +189,7 @@ public void read(long offset, int[] buf, int index, int length) {
189189 * @param length number of elements from native pointer that must be copied
190190 */
191191 public void read (long offset , long [] buf , int index , int length ) {
192- Native .read (this , this .peer , offset , buf , index , length );
192+ Native .readLongs (this , this .peer , offset , buf , index , length );
193193 }
194194
195195 /**
@@ -202,7 +202,7 @@ public void read(long offset, long[] buf, int index, int length) {
202202 * @param length number of elements from native pointer that must be copied
203203 */
204204 public void read (long offset , float [] buf , int index , int length ) {
205- Native .read (this , this .peer , offset , buf , index , length );
205+ Native .readFloats (this , this .peer , offset , buf , index , length );
206206 }
207207
208208 /**
@@ -215,7 +215,7 @@ public void read(long offset, float[] buf, int index, int length) {
215215 * @param length number of elements from native pointer that must be copied
216216 */
217217 public void read (long offset , double [] buf , int index , int length ) {
218- Native .read (this , this .peer , offset , buf , index , length );
218+ Native .readDoubles (this , this .peer , offset , buf , index , length );
219219 }
220220
221221 /**
@@ -254,7 +254,7 @@ public void read(long offset, Pointer[] buf, int index, int length) {
254254 * copied
255255 */
256256 public void write (long offset , byte [] buf , int index , int length ) {
257- Native .write (this , this .peer , offset , buf , index , length );
257+ Native .writeBytes (this , this .peer , offset , buf , index , length );
258258 }
259259
260260 /**
@@ -268,7 +268,7 @@ public void write(long offset, byte[] buf, int index, int length) {
268268 * copied
269269 */
270270 public void write (long offset , short [] buf , int index , int length ) {
271- Native .write (this , this .peer , offset , buf , index , length );
271+ Native .writeShorts (this , this .peer , offset , buf , index , length );
272272 }
273273
274274 /**
@@ -282,7 +282,7 @@ public void write(long offset, short[] buf, int index, int length) {
282282 * copied
283283 */
284284 public void write (long offset , char [] buf , int index , int length ) {
285- Native .write (this , this .peer , offset , buf , index , length );
285+ Native .writeChars (this , this .peer , offset , buf , index , length );
286286 }
287287
288288 /**
@@ -296,7 +296,7 @@ public void write(long offset, char[] buf, int index, int length) {
296296 * copied
297297 */
298298 public void write (long offset , int [] buf , int index , int length ) {
299- Native .write (this , this .peer , offset , buf , index , length );
299+ Native .writeInts (this , this .peer , offset , buf , index , length );
300300 }
301301
302302 /**
@@ -310,7 +310,7 @@ public void write(long offset, int[] buf, int index, int length) {
310310 * copied
311311 */
312312 public void write (long offset , long [] buf , int index , int length ) {
313- Native .write (this , this .peer , offset , buf , index , length );
313+ Native .writeLongs (this , this .peer , offset , buf , index , length );
314314 }
315315
316316 /**
@@ -324,7 +324,7 @@ public void write(long offset, long[] buf, int index, int length) {
324324 * copied
325325 */
326326 public void write (long offset , float [] buf , int index , int length ) {
327- Native .write (this , this .peer , offset , buf , index , length );
327+ Native .writeFloats (this , this .peer , offset , buf , index , length );
328328 }
329329
330330 /**
@@ -338,7 +338,7 @@ public void write(long offset, float[] buf, int index, int length) {
338338 * copied
339339 */
340340 public void write (long offset , double [] buf , int index , int length ) {
341- Native .write (this , this .peer , offset , buf , index , length );
341+ Native .writeDoubles (this , this .peer , offset , buf , index , length );
342342 }
343343
344344 /** Write the given array of Pointer to native memory.
0 commit comments