Lines Matching defs:unsafe

46     private static final Unsafe unsafe = XlibWrapper.unsafe;
210 unsafe.freeMemory(data);
223 * Note: it is unsafe to cache the motif drag window handle, as another
247 short s = unsafe.getShort(data);
255 int i = unsafe.getInt(data);
294 if (unsafe.getByte(data + 1) != MOTIF_DND_PROTOCOL_VERSION) {
298 boolean swapNeeded = unsafe.getByte(data + 0) != getByteOrderByte();
300 short numTargetLists = unsafe.getShort(data + 2);
315 short numTargets = unsafe.getShort(bufptr);
329 target |= (unsafe.getByte(bufptr + idx) << 8*idx)
334 target |= (unsafe.getByte(bufptr + idx) << 8*(3-idx))
360 long data = unsafe.allocateMemory(tableSize);
364 unsafe.putByte(data + 0, getByteOrderByte());
366 unsafe.putByte(data + 1, MOTIF_DND_PROTOCOL_VERSION);
368 unsafe.putShort(data + 2, (short)table.length);
370 unsafe.putInt(data + 4, tableSize);
375 unsafe.putShort(bufptr, (short)table[i].length);
385 unsafe.putByte(bufptr + idx, b);
390 unsafe.putByte(bufptr + (3-idx), b);
429 unsafe.freeMemory(data);
525 long structData = unsafe.allocateMemory(MOTIF_INITIATOR_INFO_SIZE);
529 unsafe.putByte(structData, getByteOrderByte());
531 unsafe.putByte(structData + 1, MOTIF_DND_PROTOCOL_VERSION);
533 unsafe.putShort(structData + 2, (short)index);
535 unsafe.putInt(structData + 4, (int)XA_MOTIF_ATOM_0.getAtom());
550 unsafe.freeMemory(structData);
558 long data = unsafe.allocateMemory(dataSize);
561 unsafe.putByte(data, MotifDnDConstants.getByteOrderByte()); /* byte order */
562 unsafe.putByte(data + 1, MotifDnDConstants.MOTIF_DND_PROTOCOL_VERSION); /* protocol version */
563 unsafe.putByte(data + 2, (byte)MotifDnDConstants.MOTIF_DYNAMIC_STYLE); /* protocol style */
564 unsafe.putByte(data + 3, (byte)0); /* pad */
565 unsafe.putInt(data + 4, (int)window); /* proxy window */
566 unsafe.putShort(data + 8, (short)0); /* num_drop_sites */
567 unsafe.putShort(data + 10, (short)0); /* pad */
568 unsafe.putInt(data + 12, dataSize);
583 unsafe.freeMemory(data);