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


Java LongByReference类代码示例

本文整理汇总了Java中com.sun.jna.ptr.LongByReference的典型用法代码示例。如果您正苦于以下问题:Java LongByReference类的具体用法?Java LongByReference怎么用?Java LongByReference使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


LongByReference类属于com.sun.jna.ptr包,在下文中一共展示了LongByReference类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: owlGetMappedItem

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public float[] owlGetMappedItem(Pointer model, Pointer instance, long owlInstance) {
	Memory memory = new Memory(16 * 4 * getPlatformMultiplier());
	LongByReference owlInstanceReference = new LongByReference();
	owlInstanceReference.setValue(owlInstance);
	engine.owlGetMappedItem(model, instance, owlInstanceReference, memory);
	if (getPlatformMultiplier() == 2) {
		double[] doubleArray = memory.getDoubleArray(0, 16);
		float[] floatArray = new float[16];
		for (int i=0; i<16; i++) {
			floatArray[i] = (float)doubleArray[i];
		}
		return floatArray;
	} else {
		return memory.getFloatArray(0, 16);
	}
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:17,代码来源:IfcEngine.java

示例2: Schedule_ExtractBusyTimeRange

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public native short Schedule_ExtractBusyTimeRange(
long hCntnr,
int hSchedObj,
NotesUniversalNoteIdStruct punidIgnore,
NotesTimeDatePairStruct pInterval,
IntByReference retdwSize,
LongByReference rethRange,
IntByReference rethMoreCtx);
 
开发者ID:klehmann,项目名称:domino-jna,代码行数:9,代码来源:NotesNativeAPI64.java

示例3: NIFFindByKeyExtended3

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public native long NIFFindByKeyExtended3 (long hCollection,
Memory keyBuffer, int findFlags,
int returnFlags,
NotesCollectionPositionStruct retIndexPos,
IntByReference retNumMatches, ShortByReference retSignalFlags,
LongByReference rethBuffer, IntByReference retSequence,
NotesCallbacks.NIFFindByKeyProc NIFFindByKeyCallback, NIFFindByKeyContextStruct Ctx);
 
开发者ID:klehmann,项目名称:domino-jna,代码行数:8,代码来源:NotesNativeAPI64.java

示例4: NSFNoteCipherDecrypt

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public short NSFNoteCipherDecrypt(
long  hNote,
long  hKFC,
int  DecryptFlags,
LongByReference rethCipherForAttachments,
int  Reserved,
Pointer pReserved);
 
开发者ID:klehmann,项目名称:domino-jna,代码行数:8,代码来源:INotesNativeAPI64.java

示例5: startPlatformPlayBackByIP

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
/**
 * 开始平台录像播放
 *
 * @param cameraCode
 *            摄像机编码
 * @param mediaAddrSrc
 *            媒体流目标地址
 * @param playbackParam
 *            录像播放媒体参数
 * @return SDKResult<Business> 封装领域层的SDKResult<Business>对象
 * @since eSDK IVS V100R003C00
 */
@Override
public SDKResult<Business> startPlatformPlayBackByIP(String cameraCode, MediaAddress mediaAddrSrc,
		PlaybackParam playbackParam) {

	int sessionId = super.getIVSSessionId();

	MediaAddressSouth mediaAddressSouthIn = businessMgrCabilityConvert.getMediaAddressModel2South(mediaAddrSrc);
	PlayBackParamSouth playBackParamSouthIn = businessMgrCabilityConvert.getPlayBackParamModel2South(playbackParam);

	LongByReference handle = new LongByReference();
	MediaAddressSouth mediaAddressSouthOut = new MediaAddressSouth();

	int resultCode = super.getBaseCablilityJNA().IVS_SDK_StartPlatformPlayBackByIP(sessionId, cameraCode,
			playBackParamSouthIn, mediaAddressSouthIn, mediaAddressSouthOut.getPointer(), handle);

	mediaAddressSouthOut.read();

	SDKResult<Business> result = new SDKResult<Business>();
	result.setErrCode(resultCode);

	if (0 == resultCode) {
		Business business = new Business();
		business.setHandle(handle.getValue());
		business.setMediaAddrSrc(businessMgrCabilityConvert.getMediaAddressSouth2Model(mediaAddressSouthOut));
		result.setResult(business);
	}

	return result;
}
 
开发者ID:Huawei,项目名称:eSDK_IVS_Java,代码行数:42,代码来源:BusinessMgrCability.java

示例6: NSFDbGetMultNoteInfo

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public short NSFDbGetMultNoteInfo(
long  hDb,
short  Count,
short  Options,
long  hInBuf,
IntByReference retSize,
LongByReference rethOutBuf);
 
开发者ID:klehmann,项目名称:domino-jna,代码行数:8,代码来源:INotesNativeAPI64.java

示例7: Schedule_ExtractMoreBusyTimeRange

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public native short Schedule_ExtractMoreBusyTimeRange(
long hCntnr,
int hMoreCtx,
NotesUniversalNoteIdStruct punidIgnore,
NotesTimeDatePairStruct pInterval,
IntByReference retdwSize,
LongByReference rethRange,
IntByReference rethMore);
 
开发者ID:klehmann,项目名称:domino-jna,代码行数:9,代码来源:NotesNativeAPI64.java

示例8: NIFReadEntriesExt

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public short NIFReadEntriesExt(long hCollection,
NotesCollectionPositionStruct CollectionPos,
         short SkipNavigator, int SkipCount,
         short ReturnNavigator, int ReturnCount, int ReturnMask,
         NotesTimeDateStruct DiffTime, long DiffIDTable, int ColumnNumber, int Flags,
         LongByReference rethBuffer, ShortByReference retBufferLength,
         IntByReference retNumEntriesSkipped, IntByReference retNumEntriesReturned,
         ShortByReference retSignalFlags, NotesTimeDateStruct retDiffTime,
         NotesTimeDateStruct retModifiedTime, IntByReference retSequence);
 
开发者ID:klehmann,项目名称:domino-jna,代码行数:10,代码来源:INotesNativeAPI64.java

示例9: NSFComputeEvaluate

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public native short NSFComputeEvaluate(
long  hCompute,
long hNote,
LongByReference rethResult,
ShortByReference retResultLength,
IntByReference retNoteMatchesFormula,
IntByReference retNoteShouldBeDeleted,
IntByReference retNoteModified);
 
开发者ID:klehmann,项目名称:domino-jna,代码行数:9,代码来源:NotesNativeAPI64.java

示例10: NIFFindByKeyExtended2

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public native short NIFFindByKeyExtended2 (long hCollection, Memory keyBuffer,
int findFlags,
int returnFlags,
NotesCollectionPositionStruct retIndexPos,
IntByReference retNumMatches,
ShortByReference retSignalFlags,
LongByReference rethBuffer,
IntByReference retSequence);
 
开发者ID:klehmann,项目名称:domino-jna,代码行数:9,代码来源:NotesNativeAPI64.java

示例11: NIFOpenCollectionWithUserNameList

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public short NIFOpenCollectionWithUserNameList (long hViewDB, long hDataDB,
int ViewNoteID, short OpenFlags,
long hUnreadList,
LongByReference rethCollection,
LongByReference rethViewNote, Memory retViewUNID,
LongByReference rethCollapsedList,
LongByReference rethSelectedList,
long nameList);
 
开发者ID:klehmann,项目名称:domino-jna,代码行数:9,代码来源:INotesNativeAPI64.java

示例12: FTSearch

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public short FTSearch(
long hDB,
LongByReference phSearch,
long hColl,
Memory query,
int options,
short  limit,
long hIDTable,
IntByReference retNumDocs,
Memory reserved,
LongByReference rethResults);
 
开发者ID:klehmann,项目名称:domino-jna,代码行数:12,代码来源:INotesNativeAPI64.java

示例13: NSFFormulaCompile

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public short NSFFormulaCompile(
Memory FormulaName,
short FormulaNameLength,
Memory FormulaText,
short  FormulaTextLength,
LongByReference rethFormula,
ShortByReference retFormulaLength,
ShortByReference retCompileError,
ShortByReference retCompileErrorLine,
ShortByReference retCompileErrorColumn,
ShortByReference retCompileErrorOffset,
ShortByReference retCompileErrorLength);
 
开发者ID:klehmann,项目名称:domino-jna,代码行数:13,代码来源:INotesNativeAPI64.java

示例14: NSFComputeEvaluate

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public short NSFComputeEvaluate(
long  hCompute,
long hNote,
LongByReference rethResult,
ShortByReference retResultLength,
IntByReference retNoteMatchesFormula,
IntByReference retNoteShouldBeDeleted,
IntByReference retNoteModified);
 
开发者ID:klehmann,项目名称:domino-jna,代码行数:9,代码来源:INotesNativeAPI64.java

示例15: NIFReadEntriesExt

import com.sun.jna.ptr.LongByReference; //导入依赖的package包/类
public native short NIFReadEntriesExt(long hCollection,
NotesCollectionPositionStruct CollectionPos,
         short SkipNavigator, int SkipCount,
         short ReturnNavigator, int ReturnCount, int ReturnMask,
         NotesTimeDateStruct DiffTime, long DiffIDTable, int ColumnNumber, int Flags,
         LongByReference rethBuffer, ShortByReference retBufferLength,
         IntByReference retNumEntriesSkipped, IntByReference retNumEntriesReturned,
         ShortByReference retSignalFlags, NotesTimeDateStruct retDiffTime,
         NotesTimeDateStruct retModifiedTime, IntByReference retSequence);
 
开发者ID:klehmann,项目名称:domino-jna,代码行数:10,代码来源:NotesNativeAPI64.java


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