本文整理汇总了Java中com.ochafik.lang.jnaerator.runtime.NativeSizeByReference类的典型用法代码示例。如果您正苦于以下问题:Java NativeSizeByReference类的具体用法?Java NativeSizeByReference怎么用?Java NativeSizeByReference使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NativeSizeByReference类属于com.ochafik.lang.jnaerator.runtime包,在下文中一共展示了NativeSizeByReference类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doGetSize
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
private synchronized byte doGetSize(NativeSizeByReference size) {
try {
initRandomAccessIfNecessary();
size.setValue(new NativeSize(m_chan.size()));
return 1;
} catch ( Exception e ) {
handleError("getting size", e);
return 0;
}
}
示例2: buildSizeCallback
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
private void buildSizeCallback() {
m_callbacks.getSizeCallback = new MR4CGetDataSourceSizePtr() {
public byte apply(NativeSizeByReference size) {
return doGetSize(size);
}
};
}
示例3: convertPixToImage
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
/**
* Converts Leptonica <code>Pix</code> to <code>BufferedImage</code>.
*
* @param pix
* @return BufferedImage
* @throws IOException
*/
public static BufferedImage convertPixToImage(Pix pix) throws IOException {
PointerByReference pdata = new PointerByReference();
NativeSizeByReference psize = new NativeSizeByReference();
int format = IFF_TIFF;
Leptonica1.pixWriteMem(pdata, psize, pix, format);
byte[] b = pdata.getValue().getByteArray(0, psize.getValue().intValue());
InputStream in = new ByteArrayInputStream(b);
BufferedImage bi = ImageIO.read(in);
in.close();
Leptonica1.bbufferDestroy(pdata);
return bi;
}
示例4: buildGetLocationCallback
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
private void buildGetLocationCallback() {
m_callbacks.getLocationCallback = new MR4CRandomAccessFileGetLocationPtr() {
public byte apply(NativeSizeByReference loc) {
return doGetLocation(loc);
}
};
}
示例5: doGetLocation
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
private synchronized byte doGetLocation(NativeSizeByReference loc) {
try {
initRandomAccessIfNecessary();
long location = m_chan.position();
loc.setValue(new NativeSize(location));
return 1;
} catch ( Exception e ) {
handleError("getting location", e);
return 0;
}
}
示例6: buildReadCallback
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
private void buildReadCallback() {
m_callbacks.readCallback = new MR4CDataSourceReadPtr() {
public byte apply(Pointer bufPtr, NativeSize num, NativeSizeByReference read) {
return doRead(bufPtr, num, read);
}
};
}
示例7: GlobalNativeSize
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
public GlobalNativeSize(NativeLibrary library, String... symbols) {
super(library, NativeSizeByReference.class, symbols);
}
示例8: numaWriteMem
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
@Override
public int numaWriteMem(PointerByReference pdata, NativeSizeByReference psize, Numa na) {
throw new UnsupportedOperationException("Not supported yet.");
}
示例9: pixReadFromMultipageTiff
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
@Override
public Pix pixReadFromMultipageTiff(String fname, NativeSizeByReference poffset) {
throw new UnsupportedOperationException("Not supported yet.");
}
示例10: cidConvertToPdfData
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
@Override
public int cidConvertToPdfData(L_Compressed_Data cid, String title, PointerByReference pdata, NativeSizeByReference pnbytes) {
throw new UnsupportedOperationException("Not supported yet.");
}
示例11: pixWriteMemPng
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
@Override
public int pixWriteMemPng(PointerByReference pfiledata, NativeSizeByReference pfilesize, Pix pix, float gamma) {
throw new UnsupportedOperationException("Not supported yet.");
}
示例12: pixGetRasterData
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
@Override
public int pixGetRasterData(Pix pixs, PointerByReference pdata, NativeSizeByReference pnbytes) {
throw new UnsupportedOperationException("Not supported yet.");
}
示例13: pixConvertToPdfData
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
@Override
public int pixConvertToPdfData(Pix pix, int type, int quality, PointerByReference pdata, NativeSizeByReference pnbytes, int x, int y, int res, String title, PointerByReference plpd, int position) {
throw new UnsupportedOperationException("Not supported yet.");
}
示例14: concatenatePdfToData
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
@Override
public int concatenatePdfToData(String dirname, String substr, PointerByReference pdata, NativeSizeByReference pnbytes) {
throw new UnsupportedOperationException("Not supported yet.");
}
示例15: zlibCompress
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
@Override
public Pointer zlibCompress(ByteBuffer datain, NativeSize nin, NativeSizeByReference pnout) {
throw new UnsupportedOperationException("Not supported yet.");
}