Package de.linusdev.lutils.struct.array
Interface NativeArray<T>
- All Superinterfaces:
Iterable<T>,MemorySizeable,NativeParsable
- All Known Implementing Classes:
PrimitiveTypeArray,StructureArray
-
Method Summary
Modifier and TypeMethodDescriptionget(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) int index) GetNativeArraywith atindexiterator()intlength()voidSets givenNativeArrayat index.Methods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface de.linusdev.lutils.struct.abstracts.MemorySizeable
getAlignment, getRequiredSizeMethods inherited from interface de.linusdev.lutils.struct.abstracts.NativeParsable
getByteBuffer, getPointer, isInitialised
-
Method Details
-
get
GetNativeArraywith atindex- Parameters:
index- index to get from. Must be greater than 0 and smaller thenlength().- Returns:
NativeArrayatindex
-
set
Sets givenNativeArrayat index.- Parameters:
index- index to set. Must be greater than 0 and smaller thenlength().item- to set at index
-
length
int length()- Returns:
- length of this array.
-
iterator
-