Klasse Guid.GUID

java.lang.Object
com.sun.jna.Structure
com.sun.jna.platform.win32.Guid.GUID
Bekannte direkte Unterklassen:
Guid.CLSID, Guid.CLSID.ByReference, Guid.GUID.ByReference, Guid.GUID.ByValue, Guid.IID
Umschließende Schnittstelle:
Guid

@FieldOrder({"Data1","Data2","Data3","Data4"}) public static class Guid.GUID extends Structure
The Class GUID.
Autor:
Tobias Wolf, [email protected]
  • Felddetails

    • Data1

      public int Data1
      The Data1.
    • Data2

      public short Data2
      The Data2.
    • Data3

      public short Data3
      The Data3.
    • Data4

      public byte[] Data4
      The Data4.
  • Konstruktordetails

    • GUID

      public GUID()
      Instantiates a new guid.
    • GUID

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

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

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

      public GUID(Pointer memory)
      Instantiates a new guid.
      Parameter:
      memory - the memory
  • Methodendetails

    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Structure
      Gibt zurück:
      whether the given structure's type and pointer match.
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Structure
      Gibt zurück:
      hash code for this structure's pointer.
    • fromBinary

      public static Guid.GUID fromBinary(byte[] data)
      From binary.
      Parameter:
      data - the data
      Gibt zurück:
      the guid
    • fromString

      public static Guid.GUID fromString(String guid)
      From string.
      Parameter:
      guid - the guid
      Gibt zurück:
      the guid
    • newGuid

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

      public byte[] toByteArray()
      To byte array.
      Gibt zurück:
      the byte[]
    • toGuidString

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

      protected void writeFieldsToMemory()
      Write fields to backing memory.