Skip navigation links
JNA API 4.4.0
com.sun.jna.platform.win32

Class Guid.GUID

    • Field Detail

      • Data1

        public int Data1
        The Data1.
      • Data2

        public short Data2
        The Data2.
      • Data3

        public short Data3
        The Data3.
      • Data4

        public byte[] Data4
        The Data4.
    • Constructor Detail

      • GUID

        public GUID()
        Instantiates a new guid.
      • GUID

        public GUID(Guid.GUID guid)
        Instantiates a new guid.
        Parameters:
        guid - the guid
      • GUID

        public GUID(String guid)
        Instantiates a new guid.
        Parameters:
        guid - the guid
      • GUID

        public GUID(byte[] data)
        Instantiates a new guid.
        Parameters:
        data - the data
      • GUID

        public GUID(Pointer memory)
        Instantiates a new guid.
        Parameters:
        memory - the memory
    • Method Detail

      • equals

        public boolean equals(Object o)
        Overrides:
        equals in class Structure
        Returns:
        whether the given structure's type and pointer match.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Structure
        Returns:
        hash code for this structure's pointer.
      • fromBinary

        public static Guid.GUID fromBinary(byte[] data)
        From binary.
        Parameters:
        data - the data
        Returns:
        the guid
      • fromString

        public static Guid.GUID fromString(String guid)
        From string.
        Parameters:
        guid - the guid
        Returns:
        the guid
      • newGuid

        public static Guid.GUID newGuid()
        Generates a new guid. Code taken from the standard jdk implementation (see UUID class).
        Returns:
        the guid
      • toByteArray

        public byte[] toByteArray()
        To byte array.
        Returns:
        the byte[]
      • toGuidString

        public String toGuidString()
        The value of this Guid, formatted as follows: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
        Returns:
        the string
      • writeFieldsToMemory

        protected void writeFieldsToMemory()
        Write fields to backing memory.
      • getFieldOrder

        protected List<String> getFieldOrder()
        Description copied from class: Structure
        Return this Structure's field names in their proper order. For example,
        
         protected List getFieldOrder() {
             return Arrays.asList(new String[] { ... });
         }
         
        IMPORTANT When deriving from an existing Structure subclass, ensure that you augment the list provided by the superclass, e.g.
        
         protected List getFieldOrder() {
             List fields = new ArrayList(super.getFieldOrder());
             fields.addAll(Arrays.asList(new String[] { ... }));
             return fields;
         }
         
        Field order must be explicitly indicated, since the field order as returned by Class.getFields() is not guaranteed to be predictable.
        Specified by:
        getFieldOrder in class Structure
        Returns:
        ordered list of field names
JNA API 4.4.0

Copyright © 2007-2016 Timothy Wall. All Rights Reserved.