java.lang.Object
java.lang.Number
com.sun.jna.IntegerType
de.gematik.smartcards.pcsc.lib.Dword
All Implemented Interfaces:
com.sun.jna.NativeMapped, Serializable

public class Dword extends com.sun.jna.IntegerType
The DWORD type used by WinSCard.h, used wherever an integer is needed in SCard functions.

On Windows and OS X, this is always typedef'd to an uint32_t. In the pcsclite library on Linux, it is a long instead, which is 64 bits on 64-bit Linux.

Author:
gematik
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor results in a Dword with value 0.
    Dword(long value)
    Comfort constructor, results in a Dword with given value.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns signed decimal String.

    Methods inherited from class com.sun.jna.IntegerType

    compare, compare, compare, doubleValue, equals, floatValue, fromNative, hashCode, intValue, longValue, nativeType, setValue, toNative

    Methods inherited from class java.lang.Number

    byteValue, shortValue

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Dword

      public Dword()
      Default constructor results in a Dword with value 0.

      Note: According to the requirements from ScardIoRequest() the visibility of this constructor has to be "public".

    • Dword

      public Dword(long value)
      Comfort constructor, results in a Dword with given value.
      Parameters:
      value - of Dword
      Throws:
      IllegalArgumentException - if value has too many bits for a Dword on this platform, e.g. SIZE is four but bit-length of value is greater than 32.
  • Method Details

    • toString

      public String toString()
      Returns signed decimal String.
      Overrides:
      toString in class com.sun.jna.IntegerType
      Returns:
      String representation of this instance
      See Also:
      • IntegerType.toString()