Package com.raylib.jextract
Class Wave
java.lang.Object
com.raylib.jextract.Wave
struct Wave {
unsigned int frameCount;
unsigned int sampleRate;
unsigned int sampleSize;
unsigned int channels;
void *data;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static intchannels(MemorySegment struct) Getter for field:unsigned int channelsstatic voidchannels(MemorySegment struct, int fieldValue) Setter for field:unsigned int channelsstatic final ValueLayout.OfIntLayout for field:unsigned int channelsstatic final longOffset for field:unsigned int channelsstatic MemorySegmentdata(MemorySegment struct) Getter for field:void *datastatic voiddata(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *datastatic final AddressLayoutLayout for field:void *datastatic final longOffset for field:void *datastatic intframeCount(MemorySegment struct) Getter for field:unsigned int frameCountstatic voidframeCount(MemorySegment struct, int fieldValue) Setter for field:unsigned int frameCountstatic final ValueLayout.OfIntLayout for field:unsigned int frameCountstatic final longOffset for field:unsigned int frameCountstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static intsampleRate(MemorySegment struct) Getter for field:unsigned int sampleRatestatic voidsampleRate(MemorySegment struct, int fieldValue) Setter for field:unsigned int sampleRatestatic final ValueLayout.OfIntLayout for field:unsigned int sampleRatestatic final longOffset for field:unsigned int sampleRatestatic intsampleSize(MemorySegment struct) Getter for field:unsigned int sampleSizestatic voidsampleSize(MemorySegment struct, int fieldValue) Setter for field:unsigned int sampleSizestatic final ValueLayout.OfIntLayout for field:unsigned int sampleSizestatic final longOffset for field:unsigned int sampleSizestatic longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
frameCount$layout
Layout for field:unsigned int frameCount -
frameCount$offset
public static final long frameCount$offset()Offset for field:unsigned int frameCount -
frameCount
Getter for field:unsigned int frameCount -
frameCount
Setter for field:unsigned int frameCount -
sampleRate$layout
Layout for field:unsigned int sampleRate -
sampleRate$offset
public static final long sampleRate$offset()Offset for field:unsigned int sampleRate -
sampleRate
Getter for field:unsigned int sampleRate -
sampleRate
Setter for field:unsigned int sampleRate -
sampleSize$layout
Layout for field:unsigned int sampleSize -
sampleSize$offset
public static final long sampleSize$offset()Offset for field:unsigned int sampleSize -
sampleSize
Getter for field:unsigned int sampleSize -
sampleSize
Setter for field:unsigned int sampleSize -
channels$layout
Layout for field:unsigned int channels -
channels$offset
public static final long channels$offset()Offset for field:unsigned int channels -
channels
Getter for field:unsigned int channels -
channels
Setter for field:unsigned int channels -
data$layout
Layout for field:void *data -
data$offset
public static final long data$offset()Offset for field:void *data -
data
Getter for field:void *data -
data
Setter for field:void *data -
asSlice
Obtains a slice ofarrayParamwhich 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 struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}' -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-