当前位置: 首页>>代码示例>>Java>>正文


Java NativeSizeByReference类代码示例

本文整理汇总了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;
	}
}
 
开发者ID:google,项目名称:mr4c,代码行数:11,代码来源:JnaRandomAccessFile.java

示例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);
		}
	};
}
 
开发者ID:google,项目名称:mr4c,代码行数:8,代码来源:JnaDataFileSource.java

示例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;
}
 
开发者ID:nguyenq,项目名称:lept4j,代码行数:20,代码来源:LeptUtils.java

示例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);
		}
	};
}
 
开发者ID:google,项目名称:mr4c,代码行数:8,代码来源:JnaRandomAccessFile.java

示例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;
	}
}
 
开发者ID:google,项目名称:mr4c,代码行数:12,代码来源:JnaRandomAccessFile.java

示例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);
		}
	};
}
 
开发者ID:google,项目名称:mr4c,代码行数:8,代码来源:JnaDataFileSource.java

示例7: GlobalNativeSize

import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
public GlobalNativeSize(NativeLibrary library, String... symbols) {
	super(library, NativeSizeByReference.class, symbols);
}
 
开发者ID:nativelibs4java,项目名称:JNAerator,代码行数:4,代码来源:GlobalNativeSize.java

示例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.");
}
 
开发者ID:nguyenq,项目名称:lept4j,代码行数:5,代码来源:LeptonicaImpl.java

示例9: pixReadFromMultipageTiff

import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference; //导入依赖的package包/类
@Override
public Pix pixReadFromMultipageTiff(String fname, NativeSizeByReference poffset) {
    throw new UnsupportedOperationException("Not supported yet.");
}
 
开发者ID:nguyenq,项目名称:lept4j,代码行数:5,代码来源:LeptonicaImpl.java

示例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.");
}
 
开发者ID:nguyenq,项目名称:lept4j,代码行数:5,代码来源:LeptonicaImpl.java

示例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.");
}
 
开发者ID:nguyenq,项目名称:lept4j,代码行数:5,代码来源:LeptonicaImpl.java

示例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.");
}
 
开发者ID:nguyenq,项目名称:lept4j,代码行数:5,代码来源:LeptonicaImpl.java

示例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.");
}
 
开发者ID:nguyenq,项目名称:lept4j,代码行数:5,代码来源:LeptonicaImpl.java

示例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.");
}
 
开发者ID:nguyenq,项目名称:lept4j,代码行数:5,代码来源:LeptonicaImpl.java

示例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.");
}
 
开发者ID:nguyenq,项目名称:lept4j,代码行数:5,代码来源:LeptonicaImpl.java


注:本文中的com.ochafik.lang.jnaerator.runtime.NativeSizeByReference类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。