
com.mindoo.domino.jna.internal.structs.collation.NotesCollationStruct Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-jna Show documentation
Show all versions of domino-jna Show documentation
Java project to access the HCL Domino C API using Java Native Access (JNA)
package com.mindoo.domino.jna.internal.structs.collation;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;
import com.mindoo.domino.jna.internal.structs.BaseStructure;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
/**
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA.
*/
public class NotesCollationStruct extends BaseStructure {
/** Size of entire buffer in bytes */
public short BufferSize;
/** Number of items following */
public short Items;
/** See COLLATION_FLAG_xxx */
public byte Flags;
/** Must be COLLATION_SIGNATURE */
public byte signature;
public NotesCollationStruct() {
super();
setAlignType(Structure.ALIGN_NONE);
}
public static NotesCollationStruct newInstance() {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public NotesCollationStruct run() {
return new NotesCollationStruct();
}
});
}
protected List getFieldOrder() {
return Arrays.asList("BufferSize", "Items", "Flags", "signature");
}
/**
* @param BufferSize Size of entire buffer in bytes
* @param Items Number of items following
* @param Flags See COLLATION_FLAG_xxx
* @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);
}
public static NotesCollationStruct newInstance(final short BufferSize, final short Items, final byte Flags, final byte signature) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public NotesCollationStruct run() {
return new NotesCollationStruct(BufferSize, Items, Flags, signature);
}
});
}
public NotesCollationStruct(Pointer peer) {
super(peer);
setAlignType(Structure.ALIGN_NONE);
}
public static NotesCollationStruct newInstance(final Pointer p) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public NotesCollationStruct run() {
return new NotesCollationStruct(p);
}
});
}
public static class ByReference extends NotesCollationStruct implements Structure.ByReference {
};
public static class ByValue extends NotesCollationStruct implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy