net.sourceforge.lept4j.L_Stack 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 : stack.h:5
* 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_Stack extends Structure {
/**
* size of ptr array
* C type : l_int32
*/
public int nalloc;
/**
* number of stored elements
* C type : l_int32
*/
public int n;
/**
* ptr array
* C type : void**
*/
public PointerByReference array;
/**
* auxiliary stack
* C type : L_Stack*
*/
public L_Stack.ByReference auxstack;
public L_Stack() {
super();
}
protected List > getFieldOrder() {
return Arrays.asList("nalloc", "n", "array", "auxstack");
}
/**
* @param nalloc size of ptr array
* C type : l_int32
* @param n number of stored elements
* C type : l_int32
* @param array ptr array
* C type : void**
* @param auxstack auxiliary stack
* C type : L_Stack*
*/
public L_Stack(int nalloc, int n, PointerByReference array, L_Stack.ByReference auxstack) {
super();
this.nalloc = nalloc;
this.n = n;
this.array = array;
this.auxstack = auxstack;
}
public L_Stack(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends L_Stack implements Structure.ByReference {
};
public static class ByValue extends L_Stack implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy