本文整理汇总了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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
});
}
示例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;
}
示例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;
}
示例10: ReadFile
import com.sun.jna.Structure; //导入依赖的package包/类
boolean ReadFile(Pointer hFile, Memory lpBuffer,
int nNumberOfBytesToRead, IntByReference lpNumberOfBytesRead,
Structure lpOverlapped);
示例11: SnapshotInfoListSouth
import com.sun.jna.Structure; //导入依赖的package包/类
public SnapshotInfoListSouth(Pointer pointer)
{
super(pointer, Structure.ALIGN_NONE);
}
示例12: CameraConfigSouth
import com.sun.jna.Structure; //导入依赖的package包/类
public CameraConfigSouth()
{
super(Structure.ALIGN_NONE);
}
示例13: PTZControlInfoSouth
import com.sun.jna.Structure; //导入依赖的package包/类
public PTZControlInfoSouth()
{
super(Structure.ALIGN_NONE);
}
示例14: BacklightSouth
import com.sun.jna.Structure; //导入依赖的package包/类
public BacklightSouth()
{
super(Structure.ALIGN_NONE);
}
示例15: BroadcastInfoSouth
import com.sun.jna.Structure; //导入依赖的package包/类
public BroadcastInfoSouth()
{
super(Structure.ALIGN_NONE);
}