org.rococoa.cocoa.ats
Class SFNTLookupBinarySearchHeader

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure
          extended by org.rococoa.cocoa.ats.SFNTLookupBinarySearchHeader
Direct Known Subclasses:
SFNTLookupBinarySearchHeader.ByReference, SFNTLookupBinarySearchHeader.ByValue

public class SFNTLookupBinarySearchHeader
extends com.ochafik.lang.jnaerator.runtime.Structure

A BinarySearchHeader defines the five standard fields needed to perform quick
lookups in a lookup table (note that using UInt16s, and not ItemCounts or
similar types, is important here, since these tables are in fonts, and the
documented font formats specify 16-bit quantities).
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class SFNTLookupBinarySearchHeader.ByReference
           
static class SFNTLookupBinarySearchHeader.ByValue
           
 
Field Summary
 short entrySelector
           
 short nUnits
           
 short rangeShift
           
 short searchRange
           
 short unitSize
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Constructor Summary
SFNTLookupBinarySearchHeader()
           
SFNTLookupBinarySearchHeader(short unitSize, short nUnits, short searchRange, short entrySelector, short rangeShift)
           
 
Method Summary
 SFNTLookupBinarySearchHeader.ByReference byReference()
           
 SFNTLookupBinarySearchHeader.ByValue byValue()
           
 SFNTLookupBinarySearchHeader clone()
           
 
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure
setupClone
 
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

unitSize

public short unitSize

nUnits

public short nUnits

searchRange

public short searchRange

entrySelector

public short entrySelector

rangeShift

public short rangeShift
Constructor Detail

SFNTLookupBinarySearchHeader

public SFNTLookupBinarySearchHeader()

SFNTLookupBinarySearchHeader

public SFNTLookupBinarySearchHeader(short unitSize,
                                    short nUnits,
                                    short searchRange,
                                    short entrySelector,
                                    short rangeShift)
Parameters:
unitSize - size of a unit in bytes
nUnits - number of units in table
searchRange - (largest power of two <= nUnits) * unitSize
entrySelector - log2 (largest power of two <= nUnits)
rangeShift - (nUnits - largest power of two <= nUnits) * unitSize
Method Detail

byReference

public SFNTLookupBinarySearchHeader.ByReference byReference()

byValue

public SFNTLookupBinarySearchHeader.ByValue byValue()

clone

public SFNTLookupBinarySearchHeader clone()
Overrides:
clone in class Object