Lines Matching defs:data
35 * native data types on different platforms similarly.
50 return System.getProperty("sun.arch.data.model");
66 * Set of helper function to read data of different PLATFORM types
75 static void putBool(long ptr, boolean data) { putInt(ptr, (data)?(1):(0)); }
76 static void putBool(long ptr, int index, boolean data) { putInt(ptr, index, (data)?(1):(0)); }
80 * Access to C byte data(one byte)
89 * Stores to C byte data(one byte)
91 static void putByte(long ptr, byte data) { unsafe.putByte(ptr, data); }
93 static void putByte(long ptr, int index, byte data) {
94 putByte(ptr+index, data);
97 * Converts length bytes of data pointed by <code>data</code> into byte array
98 * Returns null if data is zero
99 * @param data native pointer to native memory
102 static byte[] toBytes(long data, int length) {
103 if (data == 0) {
107 for (int i = 0; i < length; i++, data++) {
108 res[i] = getByte(data);
128 * Access to C unsigned byte data(one byte)
138 * Stores to C unsigned byte data(one byte)
140 static void putUByte(long ptr, short data) { unsafe.putByte(ptr, (byte)data); }
142 static void putUByte(long ptr, int index, short data) {
143 putUByte(ptr+index, data);
147 * Converts length usnigned bytes of data pointed by <code>data</code> into
149 * Returns null if data is zero
150 * @param data native pointer to native memory
153 static short[] toUBytes(long data, int length) {
154 if (data == 0) {
158 for (int i = 0; i < length; i++, data++) {
159 res[i] = getUByte(data);
180 * Access to C short data(two bytes)
185 * Stores to C short data(two bytes)
187 static void putShort(long ptr, short data) { unsafe.putShort(ptr, data); }
188 static void putShort(long ptr, int index, short data) {
189 putShort(ptr + index*getShortSize(), data);
203 * Access to C unsigned short data(two bytes)
209 * Stores to C unsigned short data(two bytes)
211 static void putUShort(long ptr, int data) { unsafe.putShort(ptr, (short)data); }
212 static void putUShort(long ptr, int index, int data) {
213 putUShort(ptr + index*getShortSize(), data);
233 * Access to C int data(four bytes)
239 * Stores to C int data(four bytes)
241 static void putInt(long ptr, int data) { unsafe.putInt(ptr, data); }
242 static void putInt(long ptr, int index, int data) {
243 putInt(ptr + index*getIntSize(), data);
257 * Access to C unsigned int data(four bytes)
263 * Stores to C unsigned int data(four bytes)
265 static void putUInt(long ptr, long data) { unsafe.putInt(ptr, (int)data); }
266 static void putUInt(long ptr, int index, long data) {
267 putUInt(ptr + index*getIntSize(), data);
287 * Access to C long data(size depends on platform)
300 * Stores to C long data(four bytes)
301 * Note: <code>data</code> has <code>long</code> type
302 * to be able to keep 64-bit C <code>long</code> data
304 static void putLong(long ptr, long data) {
306 unsafe.putInt(ptr, (int)data);
308 unsafe.putLong(ptr, data);
312 static void putLong(long ptr, int index, long data) {
313 putLong(ptr+index*getLongSize(), data);
352 * Converts length bytes of data pointed by <code>data</code> into byte array
353 * Returns null if data is zero
354 * @param data native pointer to native memory
357 static long[] toLongs(long data, int length) {
358 if (data == 0) {
362 for (int i = 0; i < length; i++, data += getLongSize()) {
363 res[i] = getLong(data);
420 * Set of function to return sizes of C data of the appropriate
429 * Set of function to access CARD32 type. All data which types are derived