org.rococoa.cocoa.ats
Class SFNTLookupBinarySearchHeader

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure<SFNTLookupBinarySearchHeader,SFNTLookupBinarySearchHeader.ByValue,SFNTLookupBinarySearchHeader.ByReference>
          extended by org.rococoa.cocoa.ats.SFNTLookupBinarySearchHeader
All Implemented Interfaces:
StructureType, StructureTypeDependent, Comparable<Structure<SFNTLookupBinarySearchHeader,SFNTLookupBinarySearchHeader.ByValue,SFNTLookupBinarySearchHeader.ByReference>>
Direct Known Subclasses:
SFNTLookupBinarySearchHeader.ByReference, SFNTLookupBinarySearchHeader.ByValue

public class SFNTLookupBinarySearchHeader
extends Structure<SFNTLookupBinarySearchHeader,SFNTLookupBinarySearchHeader.ByValue,SFNTLookupBinarySearchHeader.ByReference>

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).
native declaration : /System/Library/Frameworks/ApplicationServices.framework/Versions/Current/Frameworks/ATS.framework/Headers/SFNTLayoutTypes.h:539
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
 
Constructor Summary
SFNTLookupBinarySearchHeader()
           
SFNTLookupBinarySearchHeader(short unitSize, short nUnits, short searchRange, short entrySelector, short rangeShift)
           
 
Method Summary
static SFNTLookupBinarySearchHeader[] newArray(int arrayLength)
           
 
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure
byReference, byValue, castToArray, castToArray, castToArray, castToReferenceArray, castToReferenceArray, castToValueArray, castToValueArray, clone, compareTo, newArray, read, setDependency, toArray, toArray, toArray, toReferenceArray, toReferenceArray, toValueArray, toValueArray, use, use, use, use, write
 
Methods inherited from class com.sun.jna.Structure
autoRead, autoRead, autoWrite, autoWrite, clear, equals, getAutoRead, getAutoWrite, getPointer, hashCode, newInstance, readField, setAutoRead, setAutoSynch, setAutoWrite, size, toString, writeField, writeField
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ochafik.lang.jnaerator.runtime.StructureType
getPointer, size
 

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

newArray

public static SFNTLookupBinarySearchHeader[] newArray(int arrayLength)


Copyright © 2009. All Rights Reserved.