net.sourceforge.lept4j.L_Dnaa Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lept4j Show documentation
Show all versions of lept4j Show documentation
# Lept4J
## Description:
A Java JNA wrapper for Leptonica Image Processing library.
Lept4J is released and distributed under the Apache License, v2.0.
package net.sourceforge.lept4j;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.ptr.PointerByReference;
import java.util.Arrays;
import java.util.List;
/**
* native declaration : array.h:28
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java or JNA.
*/
public class L_Dnaa extends Structure {
/**
* size of allocated ptr array
* C type : l_int32
*/
public int nalloc;
/**
* number of L_Dna saved
* C type : l_int32
*/
public int n;
/**
* array of L_Dna
* C type : L_Dna**
*/
public PointerByReference dna;
public L_Dnaa() {
super();
}
protected List > getFieldOrder() {
return Arrays.asList("nalloc", "n", "dna");
}
/**
* @param nalloc size of allocated ptr array
* C type : l_int32
* @param n number of L_Dna saved
* C type : l_int32
* @param dna array of L_Dna
* C type : L_Dna**
*/
public L_Dnaa(int nalloc, int n, PointerByReference dna) {
super();
this.nalloc = nalloc;
this.n = n;
// if ((dna.length != this.dna.length))
// throw new IllegalArgumentException("Wrong array size !");
this.dna = dna;
}
public L_Dnaa(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends L_Dnaa implements Structure.ByReference {
};
public static class ByValue extends L_Dnaa implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy