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

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

Go to download

# 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 java.util.Arrays;
import java.util.List;
/**
 * Expandable byte buffer for memory read/write operations
* native declaration : bbuffer.h:18
* 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_ByteBuffer extends Structure { /** * size of allocated byte array
* C type : l_int32 */ public int nalloc; /** * number of bytes read into to the array
* C type : l_int32 */ public int n; /** * number of bytes written from the array
* C type : l_int32 */ public int nwritten; /** * byte array
* C type : l_uint8* */ public Pointer array; public L_ByteBuffer() { 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", "nwritten", "array"); } /** * @param nalloc size of allocated byte array
* C type : l_int32
* @param n number of bytes read into to the array
* C type : l_int32
* @param nwritten number of bytes written from the array
* C type : l_int32
* @param array byte array
* C type : l_uint8* */ public L_ByteBuffer(int nalloc, int n, int nwritten, Pointer array) { super(); this.nalloc = nalloc; this.n = n; this.nwritten = nwritten; this.array = array; } public L_ByteBuffer(Pointer peer) { super(peer); read(); } public static class ByReference extends L_ByteBuffer implements Structure.ByReference { }; public static class ByValue extends L_ByteBuffer implements Structure.ByValue { }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy