Class FT_Span
- All Implemented Interfaces:
Pointer
-
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 alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFT_Span(ByteBuffer container) Creates aFT_Spaninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbytecoverage()static FT_Spancreate(long address) Returns a newFT_Spaninstance for the specified memory address.static FT_Span.Buffercreate(long address, int capacity) Create aFT_Span.Bufferinstance at the specified memory.static @Nullable FT_SpancreateSafe(long address) static @Nullable FT_Span.BuffercreateSafe(long address, int capacity) shortlen()static bytencoverage(long struct) Unsafe version ofcoverage().static shortnlen(long struct) Unsafe version oflen().static shortnx(long struct) Unsafe version ofx().intsizeof()Returnssizeof(struct).shortx()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. -
X
public static final int XThe struct member offsets. -
LEN
public static final int LENThe struct member offsets. -
COVERAGE
public static final int COVERAGEThe struct member offsets.
-
-
Constructor Details
-
FT_Span
Creates aFT_Spaninstance 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
-
x
public short x()- Returns:
- the value of the
xfield.
-
len
- Returns:
- the value of the
lenfield.
-
coverage
- Returns:
- the value of the
coveragefield.
-
create
Returns a newFT_Spaninstance for the specified memory address. -
createSafe
-
create
Create aFT_Span.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nx
public static short nx(long struct) Unsafe version ofx(). -
nlen
public static short nlen(long struct) Unsafe version oflen(). -
ncoverage
public static byte ncoverage(long struct) Unsafe version ofcoverage().
-