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

org.blackdread.camerabinding.jna.EdsVolumeInfo Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package org.blackdread.camerabinding.jna;

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 : sdk-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(); } @Override protected List getFieldOrder() { return Arrays.asList("storageType", "access", "maxCapacity", "freeSpaceInBytes", "szVolumeLabel"); } /** * @param storageType C type : EdsUInt32
* @param access 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 - 2025 Weber Informatics LLC | Privacy Policy