< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/Native.java

Print this page

        

@@ -61,11 +61,11 @@
         }
     }
 
     /**
      * Set of helper function to read data of different PLATFORM types
-     * from memory pointer by <code>ptr</code>
+     * from memory pointer by {@code ptr}
      * Note, names of types in function are NATIVE PLATFORM types
      * and they have the same size as they would have in C compiler
      * on the same platform.
      */
 

@@ -91,11 +91,11 @@
 
     static void putByte(long ptr, int index, byte data) {
         putByte(ptr+index, data);
     }
     /**
-     * Converts length bytes of data pointed by <code>data</code> into byte array
+     * Converts length bytes of data pointed by {@code data} into byte array
      * Returns null if data is zero
      * @param data native pointer to native memory
      * @param length size in bytes of native memory
      */
     static byte[] toBytes(long data, int length) {

@@ -141,11 +141,11 @@
     static void putUByte(long ptr, int index, short data) {
         putUByte(ptr+index, data);
     }
 
     /**
-     * Converts length usnigned bytes of data pointed by <code>data</code> into
+     * Converts length usnigned bytes of data pointed by {@code data} into
      * short array
      * Returns null if data is zero
      * @param data native pointer to native memory
      * @param length size in bytes of native memory
      */

@@ -295,12 +295,12 @@
             return unsafe.getLong(ptr);
         }
     }
     /**
      * Stores to C long data(four bytes)
-     * Note: <code>data</code> has <code>long</code> type
-     * to be able to keep 64-bit C <code>long</code> data
+     * Note: {@code data} has {@code long} type
+     * to be able to keep 64-bit C {@code long} data
      */
     static void putLong(long ptr, long data) {
         if (XlibWrapper.dataModel == 32) {
             unsafe.putInt(ptr, (int)data);
         } else {

@@ -318,39 +318,39 @@
     static long getLong(long ptr, int index) {
         return getLong(ptr + index*getLongSize());
     }
     /**
      * Stores Java long[] array into memory. Memory location is treated as array
-     * of native <code>long</code>s
+     * of native {@code long}s
      */
     static void put(long ptr, long[] arr) {
         for (int i = 0; i < arr.length; i ++, ptr += getLongSize()) {
             putLong(ptr, arr[i]);
         }
     }
 
     /**
      * Stores Java Vector of Longs into memory. Memory location is treated as array
-     * of native <code>long</code>s
+     * of native {@code long}s
      */
     static void putLong(long ptr, Vector<Long> arr) {
         for (int i = 0; i < arr.size(); i ++, ptr += getLongSize()) {
             putLong(ptr, arr.elementAt(i).longValue());
         }
     }
 
     /**
      * Stores Java Vector of Longs into memory. Memory location is treated as array
-     * of native <code>long</code>s. Array is stored in reverse order
+     * of native {@code long}s. Array is stored in reverse order
      */
     static void putLongReverse(long ptr, Vector<Long> arr) {
         for (int i = arr.size()-1; i >= 0; i--, ptr += getLongSize()) {
             putLong(ptr, arr.elementAt(i).longValue());
         }
     }
     /**
-     * Converts length bytes of data pointed by <code>data</code> into byte array
+     * Converts length bytes of data pointed by {@code data} into byte array
      * Returns null if data is zero
      * @param data native pointer to native memory
      * @param length size in longs(platform dependent) of native memory
      */
     static long[] toLongs(long data, int length) {

@@ -391,11 +391,11 @@
     static void putULong(long ptr, long value) {
         putLong(ptr, value);
     }
 
     /**
-     * Allocates memory for array of native <code>long</code>s of the size <code>length</code>
+     * Allocates memory for array of native {@code long}s of the size {@code length}
      */
     static long allocateLongArray(int length) {
         return unsafe.allocateMemory(getLongSize() * length);
     }
 
< prev index next >