2424
2525package com .beaudoin .jmm .natives .mac ;
2626
27- import com .beaudoin .jmm .misc .MemoryBuffer ;
2827import com .sun .jna .LastErrorException ;
2928import com .sun .jna .Native ;
3029import com .sun .jna .NativeLibrary ;
3736 */
3837public final class mac {
3938
40- static {
41- Native .register (NativeLibrary .getInstance ("c" ));
42- }
39+ static {
40+ Native .register (NativeLibrary .getInstance ("c" ));
41+ }
4342
44- public static native int task_for_pid (int taskid , int pid , IntByReference out );
43+ public static native int task_for_pid (int taskid , int pid , IntByReference out );
4544
46- public static native int mach_task_self ();
45+ public static native int mach_task_self ();
4746
48- public static native int vm_write (int taskId , Pointer address , Pointer buffer , int size );
47+ public static native int vm_write (int taskId , Pointer address , Pointer buffer , int size );
4948
50- public static native int vm_read (int taskId , Pointer address , int size , Pointer buffer , IntByReference ref );
51- public static native int vm_read (int taskId , Pointer address , int size , PointerByReference buffer , IntByReference ref );
49+ public static native int vm_read (int taskId , Pointer address , int size , Pointer buffer , IntByReference ref );
5250
53- public static native String mach_error_string (int result ) throws LastErrorException ;
51+ public static native int vm_read (int taskId , Pointer address , int size , PointerByReference buffer , IntByReference ref );
52+
53+ public static native String mach_error_string (int result ) throws LastErrorException ;
5454
5555}
0 commit comments