Package org.lwjgl.llvm
Class LLVMOptRemarkStringRef
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.LLVMOptRemarkStringRef
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class LLVMOptRemarkStringRef extends org.lwjgl.system.Struct
String containing a buffer and a length. The buffer is not guaranteed to be zero-terminated.Layout
struct LLVMOptRemarkStringRef { char const * Str; uint32_t Len; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LLVMOptRemarkStringRef.Buffer
An array ofLLVMOptRemarkStringRef
structs.
-
Constructor Summary
Constructors Constructor Description LLVMOptRemarkStringRef(java.nio.ByteBuffer container)
Creates aLLVMOptRemarkStringRef
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LLVMOptRemarkStringRef
create(long address)
Returns a newLLVMOptRemarkStringRef
instance for the specified memory address.static LLVMOptRemarkStringRef.Buffer
create(long address, int capacity)
Create aLLVMOptRemarkStringRef.Buffer
instance at the specified memory.static LLVMOptRemarkStringRef
createSafe(long address)
static LLVMOptRemarkStringRef.Buffer
createSafe(long address, int capacity)
int
Len()
Returns the value of theLen
field.static int
nLen(long struct)
Unsafe version ofLen()
.static java.nio.ByteBuffer
nStr(long struct)
Unsafe version ofStr()
.static java.lang.String
nStrString(long struct)
Unsafe version ofStrString()
.int
sizeof()
java.nio.ByteBuffer
Str()
Returns aByteBuffer
view of the null-terminated string pointed to by theStr
field.java.lang.String
StrString()
Decodes the null-terminated string pointed to by theStr
field.
-
-
-
Constructor Detail
-
LLVMOptRemarkStringRef
public LLVMOptRemarkStringRef(java.nio.ByteBuffer container)
Creates aLLVMOptRemarkStringRef
instance at the current position of the specifiedByteBuffer
container. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
Str
public java.nio.ByteBuffer Str()
Returns aByteBuffer
view of the null-terminated string pointed to by theStr
field.
-
StrString
public java.lang.String StrString()
Decodes the null-terminated string pointed to by theStr
field.
-
Len
public int Len()
Returns the value of theLen
field.
-
create
public static LLVMOptRemarkStringRef create(long address)
Returns a newLLVMOptRemarkStringRef
instance for the specified memory address.
-
createSafe
@Nullable public static LLVMOptRemarkStringRef createSafe(long address)
-
create
public static LLVMOptRemarkStringRef.Buffer create(long address, int capacity)
Create aLLVMOptRemarkStringRef.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static LLVMOptRemarkStringRef.Buffer createSafe(long address, int capacity)
-
nStr
public static java.nio.ByteBuffer nStr(long struct)
Unsafe version ofStr()
.
-
nStrString
public static java.lang.String nStrString(long struct)
Unsafe version ofStrString()
.
-
nLen
public static int nLen(long struct)
Unsafe version ofLen()
.
-
-