Package org.apache.harmony.awt.nativebridge

Examples of org.apache.harmony.awt.nativebridge.Int8Pointer.fill()


     */
    static KeyInfo translateEvent(X11.XKeyEvent event) {
        KeyInfo res = new KeyInfo();
        int nBytes = 255;
        Int8Pointer buffer = bridge.createInt8Pointer(nBytes, false);
        buffer.fill((byte)0, nBytes);
        CLongPointer keySymPtr = bridge.createCLongPointer(1, false);

        nBytes = x11.XLookupString(event, buffer, nBytes, keySymPtr, null);

        if (nBytes > 0) {
View Full Code Here


        Int8Pointer iptr1 = NativeBridge.getInstance().createInt8Pointer(ptr1);
        assertEquals(0, iptr1.get(str.length()*2));
        assertEquals(0, iptr1.get(str.length()*2+1));

        Int8Pointer iptr2 = NativeBridge.getInstance().createInt8Pointer(12, false);
        iptr2.fill((byte)0xFF, 12);
        long ptr2 = iptr2.lock();
        long ptr3 = acc.getChars(ptr2, 12, str, 6, 5);
        assertEquals(ptr2, ptr3);
        iptr2.unlock();

View Full Code Here

     */
    static KeyInfo translateEvent(X11.XKeyEvent event) {
        KeyInfo res = new KeyInfo();
        int nBytes = 255;
        Int8Pointer buffer = bridge.createInt8Pointer(nBytes, false);
        buffer.fill((byte)0, nBytes);
        CLongPointer keySymPtr = bridge.createCLongPointer(1, false);

        nBytes = x11.XLookupString(event, buffer, nBytes, keySymPtr, null);

        if (nBytes > 0) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.