Class AITexel
- All Implemented Interfaces:
Pointer
struct aiTexel {
unsigned char b;
unsigned char g;
unsigned char r;
unsigned char a;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionAITexel(ByteBuffer container) Creates aAITexelinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbytea()byteb()static AITexelcreate(long address) Returns a newAITexelinstance for the specified memory address.static AITexel.Buffercreate(long address, int capacity) Create aAITexel.Bufferinstance at the specified memory.static @Nullable AITexelcreateSafe(long address) static @Nullable AITexel.BuffercreateSafe(long address, int capacity) byteg()static bytena(long struct) Unsafe version ofa().static bytenb(long struct) Unsafe version ofb().static byteng(long struct) Unsafe version ofg().static bytenr(long struct) Unsafe version ofr().byter()intsizeof()Returnssizeof(struct).Methods inherited from class Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
B
public static final int BThe struct member offsets. -
G
public static final int GThe struct member offsets. -
R
public static final int RThe struct member offsets. -
A
public static final int AThe struct member offsets.
-
-
Constructor Details
-
AITexel
Creates aAITexelinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
-
b
- Returns:
- the value of the
bfield.
-
g
- Returns:
- the value of the
gfield.
-
r
- Returns:
- the value of the
rfield.
-
a
- Returns:
- the value of the
afield.
-
create
Returns a newAITexelinstance for the specified memory address. -
createSafe
-
create
Create aAITexel.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nb
public static byte nb(long struct) Unsafe version ofb(). -
ng
public static byte ng(long struct) Unsafe version ofg(). -
nr
public static byte nr(long struct) Unsafe version ofr(). -
na
public static byte na(long struct) Unsafe version ofa().
-