5package com.jogamp.openal;
8import java.nio.charset.Charset;
9import java.nio.charset.StandardCharsets;
11import com.jogamp.gluegen.runtime.*;
12import com.jogamp.common.os.*;
13import com.jogamp.common.nio.*;
14import jogamp.common.os.MachineDataInfoRuntime;
19 StructAccessor accessor;
21 private static final int mdIdx = MachineDataInfoRuntime.getStatic().ordinal();
22 private final MachineDataInfo md;
24 private static final int[] ALCdevice_size =
new int[] { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 };
33 return ALCdevice_size[mdIdx];
38 return create(Buffers.newDirectByteBuffer(
size()));
48 return create( ElementBuffer.derefPointer(
size(), addr, 1).getByteBuffer() );
52 md = MachineDataInfo.StaticConfig.values()[mdIdx].md;
53 accessor =
new StructAccessor(buf);
58 return accessor.getBuffer();
63 return accessor.getDirectBufferAddress();
static ALCdevice create()
Returns a new instance with all bytes set to zero.
static boolean usesNativeCode()
Returns true if this generated implementation uses native code, otherwise false.
static int size()
Returns the aligned total size of a native instance.
final java.nio.ByteBuffer getBuffer()
Return the underlying native direct ByteBuffer.
static ALCdevice create(java.nio.ByteBuffer buf)
Returns a new instance using the given ByteBuffer having at least {#link size()} bytes capacity.
final long getDirectBufferAddress()
Returns the native address of the underlying native ByteBuffer getBuffer().
static ALCdevice derefPointer(final long addr)
Returns new instance dereferencing ByteBuffer at given native address addr with size size().