net.sourceforge.lept4j.L_Heap 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.
The newest version!
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;
/**
* Heap of arbitrary void* data
* native declaration : heap.h:6
* 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_Heap extends Structure {
/**
* size of allocated ptr array
* C type : l_int32
*/
public int nalloc;
/**
* number of elements stored in the heap
* C type : l_int32
*/
public int n;
/**
* ptr array
* C type : void**
*/
public PointerByReference array;
/**
* L_SORT_INCREASING or L_SORT_DECREASING
* C type : l_int32
*/
public int direction;
public L_Heap() {
super();
}
/**
* Gets this Structure's field names in their proper order.
* @return list of ordered field names
*/
@Override
protected List getFieldOrder() {
return Arrays.asList("nalloc", "n", "array", "direction");
}
/**
* @param nalloc size of allocated ptr array
* C type : l_int32
* @param n number of elements stored in the heap
* C type : l_int32
* @param array ptr array
* C type : void**
* @param direction L_SORT_INCREASING or L_SORT_DECREASING
* C type : l_int32
*/
public L_Heap(int nalloc, int n, PointerByReference array, int direction) {
super();
this.nalloc = nalloc;
this.n = n;
this.array = array;
this.direction = direction;
}
public L_Heap(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends L_Heap implements Structure.ByReference {
};
public static class ByValue extends L_Heap implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy