All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edsdk.bindings.EdsVolumeInfo Maven / Gradle / Ivy

The newest version!
package edsdk.bindings;
import com.sun.jna.NativeLong;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
/**
 * native declaration : EDSDK/Header/EDSDKTypes.h
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA. */ public class EdsVolumeInfo extends Structure { /** C type : EdsUInt32 */ public NativeLong storageType; /** * C type : EdsAccess */ public int access; /** C type : EdsUInt64 */ public long maxCapacity; /** C type : EdsUInt64 */ public long freeSpaceInBytes; /** C type : EdsChar[256] */ public byte[] szVolumeLabel = new byte[256]; public EdsVolumeInfo() { super(); } protected List getFieldOrder() { return Arrays.asList("storageType", "access", "maxCapacity", "freeSpaceInBytes", "szVolumeLabel"); } /** * @param storageType C type : EdsUInt32
* @param access @see EdsAccess
* C type : EdsAccess
* @param maxCapacity C type : EdsUInt64
* @param freeSpaceInBytes C type : EdsUInt64
* @param szVolumeLabel C type : EdsChar[256] */ public EdsVolumeInfo(NativeLong storageType, int access, long maxCapacity, long freeSpaceInBytes, byte szVolumeLabel[]) { super(); this.storageType = storageType; this.access = access; this.maxCapacity = maxCapacity; this.freeSpaceInBytes = freeSpaceInBytes; if ((szVolumeLabel.length != this.szVolumeLabel.length)) throw new IllegalArgumentException("Wrong array size !"); this.szVolumeLabel = szVolumeLabel; } public EdsVolumeInfo(Pointer peer) { super(peer); } public static class ByReference extends EdsVolumeInfo implements Structure.ByReference { }; public static class ByValue extends EdsVolumeInfo implements Structure.ByValue { }; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy