com.hcl.domino.jna.internal.structs.NotesItemTableLargeStruct Maven / Gradle / Ivy
/*
* ==========================================================================
* Copyright (C) 2019-2022 HCL America, Inc. ( http://www.hcl.com/ )
* All rights reserved.
* ==========================================================================
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. You may obtain a
* copy of the License at .
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
* ==========================================================================
*/
package com.hcl.domino.jna.internal.structs;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;
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 NotesItemTableLargeStruct extends Structure {
/** total length of this buffer */
public int Length;
/** number of items in the table */
public short Items;
/** can't have padding for inplace ods to host */
public short filler;
public NotesItemTableLargeStruct() {
super();
}
public static NotesItemTableLargeStruct newInstance() {
return AccessController
.doPrivileged((PrivilegedAction) () -> new NotesItemTableLargeStruct());
}
@SuppressWarnings("nls")
@Override
protected List getFieldOrder() {
return Arrays.asList("Length", "Items", "filler");
}
/**
* @param Length total length of this buffer
* @param Items number of items in the table
* @param filler can't have padding for inplace ods to host
*/
public NotesItemTableLargeStruct(int Length, short Items, short filler) {
super();
this.Length = Length;
this.Items = Items;
this.filler = filler;
}
public NotesItemTableLargeStruct(Pointer peer) {
super(peer);
}
public static NotesItemTableLargeStruct newInstance(Pointer peer) {
return AccessController
.doPrivileged((PrivilegedAction) () -> new NotesItemTableLargeStruct(peer));
}
public static class ByReference extends NotesItemTableLargeStruct implements Structure.ByReference {
};
public static NotesItemTableLargeStruct.ByReference newInstanceByReference() {
return AccessController.doPrivileged(
(PrivilegedAction) () -> new NotesItemTableLargeStruct.ByReference());
}
public static class ByValue extends NotesItemTableLargeStruct implements Structure.ByValue {
};
public int getLengthAsInt() {
return Length;
}
public int getItemsAsInt() {
return Items & 0xffff;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy