Package dev.atsushieno.panama.libremidi
Class libremidi_midi_configuration.on_midi_1_or_2_callback
java.lang.Object
dev.atsushieno.panama.libremidi.libremidi_midi_configuration.on_midi_1_or_2_callback
- Enclosing class:
libremidi_midi_configuration
union on_midi_1_or_2_callback {
libremidi_midi1_callback on_midi1_message;
libremidi_midi1_callback on_midi1_raw_data;
libremidi_midi2_callback on_midi2_message;
libremidi_midi2_callback on_midi2_raw_data;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegment
allocate
(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()
usingallocator
static MemorySegment
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCount
usingallocator
.static MemorySegment
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static final GroupLayout
layout()
The layout of this unionstatic MemorySegment
on_midi1_message
(MemorySegment union) Getter for field:libremidi_midi1_callback on_midi1_message
static void
on_midi1_message
(MemorySegment union, MemorySegment fieldValue) Setter for field:libremidi_midi1_callback on_midi1_message
static final GroupLayout
Layout for field:libremidi_midi1_callback on_midi1_message
static final long
Offset for field:libremidi_midi1_callback on_midi1_message
static MemorySegment
on_midi1_raw_data
(MemorySegment union) Getter for field:libremidi_midi1_callback on_midi1_raw_data
static void
on_midi1_raw_data
(MemorySegment union, MemorySegment fieldValue) Setter for field:libremidi_midi1_callback on_midi1_raw_data
static final GroupLayout
Layout for field:libremidi_midi1_callback on_midi1_raw_data
static final long
Offset for field:libremidi_midi1_callback on_midi1_raw_data
static MemorySegment
on_midi2_message
(MemorySegment union) Getter for field:libremidi_midi2_callback on_midi2_message
static void
on_midi2_message
(MemorySegment union, MemorySegment fieldValue) Setter for field:libremidi_midi2_callback on_midi2_message
static final GroupLayout
Layout for field:libremidi_midi2_callback on_midi2_message
static final long
Offset for field:libremidi_midi2_callback on_midi2_message
static MemorySegment
on_midi2_raw_data
(MemorySegment union) Getter for field:libremidi_midi2_callback on_midi2_raw_data
static void
on_midi2_raw_data
(MemorySegment union, MemorySegment fieldValue) Setter for field:libremidi_midi2_callback on_midi2_raw_data
static final GroupLayout
Layout for field:libremidi_midi2_callback on_midi2_raw_data
static final long
Offset for field:libremidi_midi2_callback on_midi2_raw_data
static MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static long
sizeof()
The size (in bytes) of this union
-
Method Details
-
layout
The layout of this union -
on_midi1_message$layout
Layout for field:libremidi_midi1_callback on_midi1_message
-
on_midi1_message$offset
public static final long on_midi1_message$offset()Offset for field:libremidi_midi1_callback on_midi1_message
-
on_midi1_message
Getter for field:libremidi_midi1_callback on_midi1_message
-
on_midi1_message
Setter for field:libremidi_midi1_callback on_midi1_message
-
on_midi1_raw_data$layout
Layout for field:libremidi_midi1_callback on_midi1_raw_data
-
on_midi1_raw_data$offset
public static final long on_midi1_raw_data$offset()Offset for field:libremidi_midi1_callback on_midi1_raw_data
-
on_midi1_raw_data
Getter for field:libremidi_midi1_callback on_midi1_raw_data
-
on_midi1_raw_data
Setter for field:libremidi_midi1_callback on_midi1_raw_data
-
on_midi2_message$layout
Layout for field:libremidi_midi2_callback on_midi2_message
-
on_midi2_message$offset
public static final long on_midi2_message$offset()Offset for field:libremidi_midi2_callback on_midi2_message
-
on_midi2_message
Getter for field:libremidi_midi2_callback on_midi2_message
-
on_midi2_message
Setter for field:libremidi_midi2_callback on_midi2_message
-
on_midi2_raw_data$layout
Layout for field:libremidi_midi2_callback on_midi2_raw_data
-
on_midi2_raw_data$offset
public static final long on_midi2_raw_data$offset()Offset for field:libremidi_midi2_callback on_midi2_raw_data
-
on_midi2_raw_data
Getter for field:libremidi_midi2_callback on_midi2_raw_data
-
on_midi2_raw_data
Setter for field:libremidi_midi2_callback on_midi2_raw_data
-
asSlice
Obtains a slice ofarrayParam
which selects the array element atindex
. The returned segment has addressarrayParam.address() + index * layout().byteSize()
-
sizeof
public static long sizeof()The size (in bytes) of this union -
allocate
Allocate a segment of sizelayout().byteSize()
usingallocator
-
allocateArray
Allocate an array of sizeelementCount
usingallocator
. The returned segment has sizeelementCount * layout().byteSize()
. -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizelayout().byteSize()
-
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizeelementCount * layout().byteSize()
-