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

net.sourceforge.lept4j.Boxa Maven / Gradle / Ivy

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;
/**
 * Array of Box
* native declaration : pix.h:110
* 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 Boxa extends Structure { /** * number of box in ptr array
* C type : l_int32 */ public int n; /** * number of box ptrs allocated
* C type : l_int32 */ public int nalloc; /** * reference count (1 if no clones)
* C type : l_uint32 */ public int refcount; /** * box ptr array
* C type : Box** */ public PointerByReference box; public Boxa() { super(); } protected List getFieldOrder() { return Arrays.asList("n", "nalloc", "refcount", "box"); } /** * @param n number of box in ptr array
* C type : l_int32
* @param nalloc number of box ptrs allocated
* C type : l_int32
* @param refcount reference count (1 if no clones)
* C type : l_uint32
* @param box box ptr array
* C type : Box** */ public Boxa(int n, int nalloc, int refcount, PointerByReference box) { super(); this.n = n; this.nalloc = nalloc; this.refcount = refcount; // if ((box.length != this.box.length)) // throw new IllegalArgumentException("Wrong array size !"); this.box = box; } public Boxa(Pointer peer) { super(peer); read(); } public static class ByReference extends Boxa implements Structure.ByReference { }; public static class ByValue extends Boxa implements Structure.ByValue { }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy