當前位置: 首頁>>代碼示例>>Java>>正文


Java Structure類代碼示例

本文整理匯總了Java中com.sun.jna.Structure的典型用法代碼示例。如果您正苦於以下問題:Java Structure類的具體用法?Java Structure怎麽用?Java Structure使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Structure類屬於com.sun.jna包,在下文中一共展示了Structure類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getAdapter

import com.sun.jna.Structure; //導入依賴的package包/類
@Override
public <T> T getAdapter(Class<T> clazz) {
	if (clazz == NotesTimeDateStruct.class || clazz == Structure.class) {
		return (T) m_struct;
	}
	return null;
}
 
開發者ID:klehmann,項目名稱:domino-jna,代碼行數:8,代碼來源:NotesTimeDate.java

示例2: NotesViewTableFormatStruct

import com.sun.jna.Structure; //導入依賴的package包/類
/**
 * @param Header C type : VIEW_FORMAT_HEADER<br>
 * @param Columns Number of columns<br>
 * @param ItemSequenceNumber Seq. number for unique item names<br>
 * @param Flags (see VIEW_TABLE_xxx)<br>
 * @param Flags2 Flags
 */
public NotesViewTableFormatStruct(NotesViewFormatHeaderStruct Header, short Columns, short ItemSequenceNumber, short Flags, short Flags2) {
	super();
	this.Header = Header;
	this.Columns = Columns;
	this.ItemSequenceNumber = ItemSequenceNumber;
	this.Flags = Flags;
	this.Flags2 = Flags2;
	setAlignType(Structure.ALIGN_NONE);
}
 
開發者ID:klehmann,項目名稱:domino-jna,代碼行數:17,代碼來源:NotesViewTableFormatStruct.java

示例3: NotesViewColumnFormat5Struct

import com.sun.jna.Structure; //導入依賴的package包/類
/**
 * @param Signature VIEW_COLUMN_FORMAT_SIGNATURE5
 * @param dwLength sizeof this structure + any extra data.
 * @param dwFlags flags 
 * @param wDistNameColLen Length of programatic name of column that contains distiguished name.
 * @param wSharedColumnAliasLen If shared column, length of the alias of the shared column
 * @param dwReserved Reserved for future use.
 * C type : DWORD[4]
 */
public NotesViewColumnFormat5Struct(short Signature, short dwLength, int dwFlags, short wDistNameColLen, short wSharedColumnAliasLen, int dwReserved[]) {
	super();
	this.Signature = Signature;
	this.dwLength = dwLength;
	this.dwFlags = dwFlags;
	this.wDistNameColLen = wDistNameColLen;
	this.wSharedColumnAliasLen = wSharedColumnAliasLen;
	if ((dwReserved.length != this.dwReserved.length)) 
		throw new IllegalArgumentException("Wrong array size !");
	this.dwReserved = dwReserved;
	setAlignType(Structure.ALIGN_NONE);
}
 
開發者ID:klehmann,項目名稱:domino-jna,代碼行數:22,代碼來源:NotesViewColumnFormat5Struct.java

示例4: NotesCollationStruct

import com.sun.jna.Structure; //導入依賴的package包/類
/**
 * @param BufferSize Size of entire buffer in bytes<br>
 * @param Items Number of items following<br>
 * @param Flags See COLLATION_FLAG_xxx<br>
 * @param signature Must be COLLATION_SIGNATURE
 */
public NotesCollationStruct(short BufferSize, short Items, byte Flags, byte signature) {
	super();
	this.BufferSize = BufferSize;
	this.Items = Items;
	this.Flags = Flags;
	this.signature = signature;
	setAlignType(Structure.ALIGN_NONE);
}
 
開發者ID:klehmann,項目名稱:domino-jna,代碼行數:15,代碼來源:NotesCollationStruct.java

示例5: NotesCollateDescriptorStruct

import com.sun.jna.Structure; //導入依賴的package包/類
/**
 * @param Flags flags
 * @param signature Must be COLLATE_DESCRIPTOR_SIGNATURE<br>
 * @param keytype Type of key (COLLATE_TYPE_xxx)<br>
 * @param NameOffset Offset to the name string<br>
 * @param NameLength Length of the name string
 */
public NotesCollateDescriptorStruct(byte Flags, byte signature, byte keytype, short NameOffset, short NameLength) {
	super();
	this.Flags = Flags;
	this.signature = signature;
	this.keytype = keytype;
	this.NameOffset = NameOffset;
	this.NameLength = NameLength;
	setAlignType(Structure.ALIGN_NONE);
}
 
開發者ID:klehmann,項目名稱:domino-jna,代碼行數:17,代碼來源:NotesCollateDescriptorStruct.java

示例6: WinNotesNamesListHeader64Struct

import com.sun.jna.Structure; //導入依賴的package包/類
/**
 * Creates a new instance
 * 
 * @param numNames number of names in the list
 * @param id info from LICENSEID, should be empty
 * @param product info from LICENSEID, should be empty
 * @param check info from LICENSEID, should be empty
 * @param authenticated  Flag to mark the user as already authenticated, e.g. via web server
 * @deprecated only public to be used by JNA; use static newInstance method instead to run in AccessController.doPrivileged block
 */
public WinNotesNamesListHeader64Struct(short numNames, byte id[], byte product, byte check[], short authenticated) {
	super();
	this.NumNames = numNames;
	if ((id.length != this.ID.length)) 
		throw new IllegalArgumentException("Wrong array size !");
	this.ID = id;
	this.Product = product;
	if ((check.length != this.Check.length)) 
		throw new IllegalArgumentException("Wrong array size !");
	this.Check = check;
	this.Authenticated = authenticated;
	setAlignType(Structure.ALIGN_DEFAULT);
}
 
開發者ID:klehmann,項目名稱:domino-jna,代碼行數:24,代碼來源:WinNotesNamesListHeader64Struct.java

示例7: newInstance

import com.sun.jna.Structure; //導入依賴的package包/類
public static NotesTFMTStruct newInstance(final byte Date, final byte Time, final byte Zone, final byte Structure) {
	return AccessController.doPrivileged(new PrivilegedAction<NotesTFMTStruct>() {

		@Override
		public NotesTFMTStruct run() {
			return new NotesTFMTStruct(Date, Time, Zone, Structure);
		}
	});
}
 
開發者ID:klehmann,項目名稱:domino-jna,代碼行數:10,代碼來源:NotesTFMTStruct.java

示例8: NotesObjectDescriptorStruct

import com.sun.jna.Structure; //導入依賴的package包/類
/**
 * @param ObjectType Type of object (OBJECT_xxx)<br>
 * @param RRV Object ID of the object in THIS FILE
 * @deprecated only public to be used by JNA; use static newInstance method instead to run in AccessController.doPrivileged block
 */
public NotesObjectDescriptorStruct(short ObjectType, int RRV) {
	super();
	setAlignType(Structure.ALIGN_NONE);
	this.ObjectType = ObjectType;
	this.RRV = RRV;
}
 
開發者ID:klehmann,項目名稱:domino-jna,代碼行數:12,代碼來源:NotesObjectDescriptorStruct.java

示例9: getAdapter

import com.sun.jna.Structure; //導入依賴的package包/類
@Override
public <T> T getAdapter(Class<T> clazz) {
	if (clazz == NotesDbReplicaInfoStruct.class || clazz == Structure.class) {
		return (T) m_struct;
	}
	return null;
}
 
開發者ID:klehmann,項目名稱:domino-jna,代碼行數:8,代碼來源:NotesDbReplicaInfo.java

示例10: ReadFile

import com.sun.jna.Structure; //導入依賴的package包/類
boolean ReadFile(Pointer hFile, Memory lpBuffer,
int nNumberOfBytesToRead, IntByReference lpNumberOfBytesRead,
Structure lpOverlapped);
 
開發者ID:yajsw,項目名稱:yajsw,代碼行數:4,代碼來源:WindowsXPProcess.java

示例11: SnapshotInfoListSouth

import com.sun.jna.Structure; //導入依賴的package包/類
public SnapshotInfoListSouth(Pointer pointer)
{
    super(pointer, Structure.ALIGN_NONE);
}
 
開發者ID:Huawei,項目名稱:eSDK_IVS_Java,代碼行數:5,代碼來源:SnapshotInfoListSouth.java

示例12: CameraConfigSouth

import com.sun.jna.Structure; //導入依賴的package包/類
public CameraConfigSouth()
{
    super(Structure.ALIGN_NONE);
}
 
開發者ID:Huawei,項目名稱:eSDK_IVS_Java,代碼行數:5,代碼來源:CameraConfigSouth.java

示例13: PTZControlInfoSouth

import com.sun.jna.Structure; //導入依賴的package包/類
public PTZControlInfoSouth()
{
    super(Structure.ALIGN_NONE);
}
 
開發者ID:Huawei,項目名稱:eSDK_IVS_Java,代碼行數:5,代碼來源:PTZControlInfoSouth.java

示例14: BacklightSouth

import com.sun.jna.Structure; //導入依賴的package包/類
public BacklightSouth()
{
    super(Structure.ALIGN_NONE);
}
 
開發者ID:Huawei,項目名稱:eSDK_IVS_Java,代碼行數:5,代碼來源:BacklightSouth.java

示例15: BroadcastInfoSouth

import com.sun.jna.Structure; //導入依賴的package包/類
public BroadcastInfoSouth()
{
    super(Structure.ALIGN_NONE);
}
 
開發者ID:Huawei,項目名稱:eSDK_IVS_Java,代碼行數:5,代碼來源:BroadcastInfoSouth.java


注:本文中的com.sun.jna.Structure類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。