public class LIST extends BaseStruct
Modifier and Type | Class and Description |
---|---|
static class |
LIST.Type |
Modifier and Type | Field and Description |
---|---|
static int |
_ListEntries |
static int |
sizeOf |
data, owned
Constructor and Description |
---|
LIST() |
LIST(LIST.Type type) |
LIST(long data) |
LIST(long data,
boolean owned) |
LIST(long data,
boolean owned,
LIST.Type type) |
LIST(long data,
LIST.Type type) |
Modifier and Type | Method and Description |
---|---|
static LIST |
fromStrings(Collection<? extends CharSequence> stringList) |
static LIST |
fromUniversalNoteIDs(Collection<? extends UNIVERSALNOTEID> unidList) |
short |
getListEntries() |
UNIVERSALNOTEID[] |
getNoteRefValues()
Returns the values of this list as UNIVERSALNOTEIDs.
|
String[] |
getStringValues()
Returns the values of this list as UTF-8 Strings.
|
int |
getTotalSize() |
LIST.Type |
getType() |
static int[] |
readSizes(long sizesPtr,
int listEntries)
Returns an array of list-element sizes starting from the provided pointer.
|
static String[] |
readStringValues(long valuesPtr,
int[] sizes)
Returns an array of list-element string values starting from the provided pointer.
|
void |
setListEntries(short listEntries) |
void |
setType(LIST.Type type) |
_checkRefValidity, _getBYTE, _getDHandle, _getDWORD, _getFONTID, _getHTMLAPI_REF_TYPE, _getInt, _getLong, _getNOTEID, _getPointer, _getUSHORT, _getWORD, _setBYTE, _setDHandle, _setDWORD, _setFONTID, _setInt, _setLong, _setNOTEID, _setUSHORT, _setWORD, finalize, free, free, getAllocatedStructCount, getDataPtr, getField, isRefValid, isTraceCreation, setDataPtr, setTraceCreation, toString
public static final int sizeOf
public static final int _ListEntries
public LIST()
public LIST(LIST.Type type)
public LIST(long data)
public LIST(long data, LIST.Type type)
public LIST(long data, boolean owned)
public LIST(long data, boolean owned, LIST.Type type)
public static LIST fromStrings(Collection<? extends CharSequence> stringList)
public static LIST fromUniversalNoteIDs(Collection<? extends UNIVERSALNOTEID> unidList)
public short getListEntries()
public void setListEntries(short listEntries)
public void setType(LIST.Type type)
public LIST.Type getType()
public int getTotalSize()
public UNIVERSALNOTEID[] getNoteRefValues()
Returns the values of this list as UNIVERSALNOTEIDs.
The returned structures are views on the original memory.
public String[] getStringValues()
Returns the values of this list as UTF-8 Strings.
The resultant data is detached from the original struct's memory.
public static int[] readSizes(long sizesPtr, int listEntries)
sizesPtr
- the pointer to the start of the sizes arraypublic static String[] readStringValues(long valuesPtr, int[] sizes)
valuesPtr
- the pointer to the start of the string datasizes
- an array of string sizesCopyright © 2014–2018. All rights reserved.