java.lang.Object
com.sun.jna.Structure
org.cryptomator.frontend.dokany.internal.structure.DeviceOptions
All Implemented Interfaces:
com.sun.jna.Structure.ByReference

public class DeviceOptions extends com.sun.jna.Structure implements com.sun.jna.Structure.ByReference
Dokany mount options used to describe Dokany device behavior. This is the same structure as PDOKAN_OPTIONS (dokan.h) in the C++ version of Dokany.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.sun.jna.Structure

    com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Allocation Unit Size of the volume.
    static short
     
    long
    FileSystem can store anything here
    com.sun.jna.WString
    Mount point.
    int
    Features enable for the mount.
    long
    Sector Size of the volume.
    short
    Number of threads to be used internally by Dokany library.
    long
    Max timeout in milliseconds of each request before Dokany gives up.
    com.sun.jna.WString
    UNC name used for network volume.
    short
    Version of the Dokany features requested (version "123" is equal to Dokany version 1.2.3).

    Fields inherited from class com.sun.jna.Structure

    ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    DeviceOptions(String mountPoint, short threadCount, EnumIntegerSet<DokanOption> dokanOptions, String uncName, long timeout, long allocationUnitSize, long sectorSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected List<String>
     
     

    Methods inherited from class com.sun.jna.Structure

    allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField, writeField

    Methods inherited from class java.lang.Object

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

    • DOKANY_FEATURE_VERSION

      public static short DOKANY_FEATURE_VERSION
    • Version

      public short Version
      Version of the Dokany features requested (version "123" is equal to Dokany version 1.2.3).
    • ThreadCount

      public short ThreadCount
      Number of threads to be used internally by Dokany library. More thread will handle more event at the same time.
    • Options

      public int Options
      Features enable for the mount.
    • GlobalContext

      public long GlobalContext
      FileSystem can store anything here
    • MountPoint

      public com.sun.jna.WString MountPoint
      Mount point. Can be M:\\ (drive letter) or C:\\mount\\dokany (path in NTFS).
    • UNCName

      public com.sun.jna.WString UNCName
      UNC name used for network volume.
    • Timeout

      public long Timeout
      Max timeout in milliseconds of each request before Dokany gives up.
    • AllocationUnitSize

      public long AllocationUnitSize
      Allocation Unit Size of the volume.
    • SectorSize

      public long SectorSize
      Sector Size of the volume.
  • Constructor Details

    • DeviceOptions

      public DeviceOptions()
    • DeviceOptions

      public DeviceOptions(String mountPoint, short threadCount, EnumIntegerSet<DokanOption> dokanOptions, String uncName, long timeout, long allocationUnitSize, long sectorSize)
  • Method Details

    • getDokanOptions

      public EnumIntegerSet<DokanOption> getDokanOptions()
    • getFieldOrder

      protected List<String> getFieldOrder()
      Overrides:
      getFieldOrder in class com.sun.jna.Structure
    • toString

      public String toString()
      Overrides:
      toString in class com.sun.jna.Structure