Class DeviceOptions
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
FieldsModifier and TypeFieldDescriptionlongAllocation Unit Size of the volume.static shortlongFileSystem can store anything herecom.sun.jna.WStringMount point.intFeatures enable for the mount.longSector Size of the volume.shortNumber of threads to be used internally by Dokany library.longMax timeout in milliseconds of each request before Dokany gives up.com.sun.jna.WStringUNC name used for network volume.shortVersion 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
ConstructorsConstructorDescriptionDeviceOptions(String mountPoint, short threadCount, EnumIntegerSet<DokanOption> dokanOptions, String uncName, long timeout, long allocationUnitSize, long sectorSize) -
Method Summary
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
-
Field Details
-
DOKANY_FEATURE_VERSION
public static short DOKANY_FEATURE_VERSION -
Version
public short VersionVersion of the Dokany features requested (version "123" is equal to Dokany version 1.2.3). -
ThreadCount
public short ThreadCountNumber of threads to be used internally by Dokany library. More thread will handle more event at the same time. -
Options
public int OptionsFeatures enable for the mount. -
GlobalContext
public long GlobalContextFileSystem can store anything here -
MountPoint
public com.sun.jna.WString MountPointMount point. Can be M:\\ (drive letter) or C:\\mount\\dokany (path in NTFS). -
UNCName
public com.sun.jna.WString UNCNameUNC name used for network volume. -
Timeout
public long TimeoutMax timeout in milliseconds of each request before Dokany gives up. -
AllocationUnitSize
public long AllocationUnitSizeAllocation Unit Size of the volume. -
SectorSize
public long SectorSizeSector 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
-
getFieldOrder
- Overrides:
getFieldOrderin classcom.sun.jna.Structure
-
toString
- Overrides:
toStringin classcom.sun.jna.Structure
-