| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| protected static class | |
| public static interface | Struct.
A functional interface that enables lambda expressions to be passed to the |
| Modifier and Type | Field and Description |
|---|---|
| protected ByteBuffer | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| protected | Struct(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Creates a struct instance at the specified address. |
| Modifier and Type | Method and Description |
|---|---|
| protected static Struct. | |
| protected static Struct. | |
| protected static Struct. | |
| protected static ByteBuffer | |
| protected static long | |
| protected static ByteBuffer | |
| protected static <T extends Struct | |
| protected static ByteBuffer | |
| protected static Struct. | |
| protected static Struct. | |
| protected static Struct. | |
| protected static Struct. | |
| protected static Struct. | |
| protected static Struct. | |
| protected static Struct. | |
| protected static Struct. | |
| protected static Struct. | |
| private static void | |
| private static int | |
| private void | |
| public void | |
| protected abstract SELF | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Similar to |
| public void | |
| private static long | |
| public boolean | Returns: true if the member isNULLthe byte offset of the member to query memberOffset)Returns true if the pointer member that corresponds to the specified |
| public abstract int | |
| public static void | validate(long
the struct array to validate array, int the number of structs in count, int arraythe size of each struct, in bytes SIZEOF, Struct.Validates each struct contained in the specified struct array. |
| container | back to summary |
|---|---|
protected ByteBuffer container
| |
| DEFAULT_ALIGN_AS | back to summary |
|---|---|
| protected static final int DEFAULT_ALIGN_AS | |
| DEFAULT_PACK_ALIGNMENT | back to summary |
|---|---|
| protected static final int DEFAULT_PACK_ALIGNMENT | |
| Struct | back to summary |
|---|---|
| protected Struct(long address, ByteBuffer container) Creates a struct instance at the specified address.
| |
| __array | back to summary |
|---|---|
| protected static Struct. | |
| __array | back to summary |
|---|---|
| protected static Struct. | |
| __array | back to summary |
|---|---|
| protected static Struct. | |
| __checkContainer | back to summary |
|---|---|
| protected static ByteBuffer __checkContainer(ByteBuffer container, int sizeof) | |
| __checkMalloc | back to summary |
|---|---|
| protected static long __checkMalloc(int elements, int elementSize) | |
| __create | back to summary |
|---|---|
| protected static ByteBuffer __create(int elements, int elementSize) | |
| __getContainer | back to summary |
|---|---|
protected static <T extends Struct
| |
| __getContainer | back to summary |
|---|---|
protected static ByteBuffer __getContainer(StructBuffer<?, ?> struct)
| |
| __member | back to summary |
|---|---|
| protected static Struct. | |
| __member | back to summary |
|---|---|
| protected static Struct. | |
| __member | back to summary |
|---|---|
| protected static Struct. | |
| __padding | back to summary |
|---|---|
| protected static Struct. | |
| __padding | back to summary |
|---|---|
| protected static Struct. | |
| __struct | back to summary |
|---|---|
| protected static Struct. | |
| __struct | back to summary |
|---|---|
| protected static Struct. | |
| __union | back to summary |
|---|---|
| protected static Struct. | |
| __union | back to summary |
|---|---|
| protected static Struct. | |
| addNestedMembers | back to summary |
|---|---|
| private static void addNestedMembers(Struct. | |
| align | back to summary |
|---|---|
| private static int align(int offset, int alignment) | |
| checkMemberOffset | back to summary |
|---|---|
| private void checkMemberOffset(int memberOffset) | |
| clear | back to summary |
|---|---|
| public void clear() Zeroes-out the struct data. | |
| create | back to summary |
|---|---|
| protected abstract SELF create(long address, ByteBuffer container) Similar to Effectively, every
| |
| free | back to summary |
|---|---|
| public void free() Frees the struct allocation. This method should not be used if the memory backing this struct is not owned by the struct. | |
| getBytes | back to summary |
|---|---|
| private static long getBytes(int elements, int elementSize) | |
| isNull | back to summary |
|---|---|
| public boolean isNull(int memberOffset) Returns true if the pointer member that corresponds to the specified This is useful to verify that not nullable members of an untrusted struct instance are indeed not
| |
| sizeof | back to summary |
|---|---|
| public abstract int sizeof() Returns | |
| validate | back to summary |
|---|---|
| public static void validate(long array, int count, int SIZEOF, Struct. Validates each struct contained in the specified struct array. [INTERNAL USE ONLY]
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Struct. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| members | back to summary |
|---|---|
| pack-priv final Struct. | |
| Layout | back to summary |
|---|---|
| pack-priv Layout(int size, int alignment, boolean forceAlignment, Struct. | |
| offsetof | back to summary |
|---|---|
| public int offsetof(int member) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final boolean | |
| pack-priv int | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public int |
| alignment | back to summary |
|---|---|
| pack-priv final int alignment | |
| forcedAlignment | back to summary |
|---|---|
| pack-priv final boolean forcedAlignment | |
| offset | back to summary |
|---|---|
| pack-priv int offset | |
| size | back to summary |
|---|---|
| pack-priv final int size | |
| Member | back to summary |
|---|---|
| pack-priv Member(int size, int alignment, boolean forcedAlignment) | |
| getAlignment | back to summary |
|---|---|
| public int getAlignment() | |
| getAlignment | back to summary |
|---|---|
| public int getAlignment(int packAlignment) | |
| getSize | back to summary |
|---|---|
| public int getSize() | |
validate method. [INTERNAL USE ONLY]
| Modifier and Type | Method and Description |
|---|---|
| public void |
| validate | back to summary |
|---|---|
| public void validate(long struct) | |