Class L_StrCode

java.lang.Object
com.sun.jna.Structure
net.sourceforge.lept4j.L_StrCode
Direct Known Subclasses:
L_StrCode.ByReference, L_StrCode.ByValue

public class L_StrCode
extends com.sun.jna.Structure
stringcode.h
Data structure to hold accumulating generated code for storing
and extracting serializable leptonica objects (e.g., pixa, recog).
Also a flag for selecting a string from the L_GenAssoc struct
in stringcode.
native declaration : stringcode.h:12
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.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  L_StrCode.ByReference  
    static class  L_StrCode.ByValue  

    Nested classes/interfaces inherited from class com.sun.jna.Structure

    com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
  • Field Summary

    Fields 
    Modifier and Type Field Description
    Sarray.ByReference data
    store base64 encoded data as strings
    C type : SARRAY*
    Sarray.ByReference descr
    store line in description table
    C type : SARRAY*
    int fileno
    index for function and output file names
    C type : l_int32
    Sarray.ByReference function
    store case code for extraction
    C type : SARRAY*
    int ifunc
    index into struct currently being stored
    C type : l_int32
    int n
    number of data strings
    C type : l_int32

    Fields inherited from class com.sun.jna.Structure

    ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
  • Constructor Summary

    Constructors 
    Constructor Description
    L_StrCode()  
    L_StrCode​(int fileno, int ifunc, Sarray.ByReference function, Sarray.ByReference data, Sarray.ByReference descr, int n)  
    L_StrCode​(com.sun.jna.Pointer peer)  
  • Method Summary

    Modifier and Type Method Description
    protected java.util.List<java.lang.String> getFieldOrder()
    Gets this Structure's field names in their proper order.

    Methods inherited from class com.sun.jna.Structure

    allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • fileno

      public int fileno
      index for function and output file names
      C type : l_int32
    • ifunc

      public int ifunc
      index into struct currently being stored
      C type : l_int32
    • function

      public Sarray.ByReference function
      store case code for extraction
      C type : SARRAY*
    • data

      public Sarray.ByReference data
      store base64 encoded data as strings
      C type : SARRAY*
    • descr

      public Sarray.ByReference descr
      store line in description table
      C type : SARRAY*
    • n

      public int n
      number of data strings
      C type : l_int32
  • Constructor Details

    • L_StrCode

      public L_StrCode()
    • L_StrCode

      public L_StrCode​(int fileno, int ifunc, Sarray.ByReference function, Sarray.ByReference data, Sarray.ByReference descr, int n)
      Parameters:
      fileno - index for function and output file names
      C type : l_int32
      ifunc - index into struct currently being stored
      C type : l_int32
      function - store case code for extraction
      C type : SARRAY*
      data - store base64 encoded data as strings
      C type : SARRAY*
      descr - store line in description table
      C type : SARRAY*
      n - number of data strings
      C type : l_int32
    • L_StrCode

      public L_StrCode​(com.sun.jna.Pointer peer)
  • Method Details

    • getFieldOrder

      protected java.util.List<java.lang.String> getFieldOrder()
      Gets this Structure's field names in their proper order.
      Overrides:
      getFieldOrder in class com.sun.jna.Structure
      Returns:
      list of ordered field names