org.rococoa.cocoa.ats
Class SFNTLookupBinarySearchHeader
java.lang.Object
com.sun.jna.Structure
com.ochafik.lang.jnaerator.runtime.Structure<SFNTLookupBinarySearchHeader,SFNTLookupBinarySearchHeader.ByValue,SFNTLookupBinarySearchHeader.ByReference>
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.
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 |
unitSize
public short unitSize
nUnits
public short nUnits
searchRange
public short searchRange
entrySelector
public short entrySelector
rangeShift
public short rangeShift
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
newArray
public static SFNTLookupBinarySearchHeader[] newArray(int arrayLength)
Copyright © 2009. All Rights Reserved.