Package com.sun.jna.platform.win32.Guid

Examples of com.sun.jna.platform.win32.Guid.GUID.toByteArray()


        (byte) 0x00, (byte) 0xC0, (byte) 0x4F, (byte) 0xB9,
        (byte) 0x51, (byte) 0xED };

    // test loading via static method
    GUID targetGuid = GUID.fromBinary(sourceGuidBArr);
    byte[] targetGuidBArr = targetGuid.toByteArray();

    for (int i = 0; i < sourceGuidBArr.length; i++) {
      assertEquals(targetGuidBArr[i], sourceGuidBArr[i]);
    }
  }
View Full Code Here


        (byte) 0x00, (byte) 0xC0, (byte) 0x4F, (byte) 0xB9,
        (byte) 0x51, (byte) 0xED };

    // test loading via constructor
    GUID targetGuid = new GUID(sourceGuidBArr);
    byte[] targetGuidBArr = targetGuid.toByteArray();

    for (int i = 0; i < sourceGuidBArr.length; i++) {
      assertEquals(targetGuidBArr[i], sourceGuidBArr[i]);
    }
  }
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.