java.lang.Object
tech.deplant.java4ever.binding.ffi.tc_string_data_t
tc_string_data_t
relies on preview features of the Java platform:
tc_string_data_t
refers to one or more preview APIs:MemoryAddress
,MemoryLayout
,MemorySegment
,MemorySession
,SegmentAllocator
.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutPREVIEW
$LAYOUT()
static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator) static MemorySegmentPREVIEW
allocateArray
(int len, SegmentAllocatorPREVIEW allocator) static MemoryAddressPREVIEW
static MemoryAddressPREVIEW
content$get
(MemorySegmentPREVIEW seg, long index) static void
content$set
(MemorySegmentPREVIEW seg, long index, MemoryAddressPREVIEW x) static void
static VarHandle
static int
static int
len$get
(MemorySegmentPREVIEW seg, long index) static void
len$set
(MemorySegmentPREVIEW seg, int x) static void
len$set
(MemorySegmentPREVIEW seg, long index, int x) static VarHandle
len$VH()
static MemorySegmentPREVIEW
ofAddress
(MemoryAddressPREVIEW addr, MemorySessionPREVIEW session) static long
sizeof()
-
Constructor Details
-
tc_string_data_t
public tc_string_data_t()
-
-
Method Details
-
$LAYOUT
-
content$VH
-
content$get
-
content$set
-
content$get
-
content$set
-
len$VH
-
len$get
-
len$set
-
len$get
-
len$set
-
sizeof
public static long sizeof() -
allocate
-
allocateArray
-
ofAddress
public static MemorySegmentPREVIEW ofAddress(MemoryAddressPREVIEW addr, MemorySessionPREVIEW session)
-
tc_string_data_t
when preview features are enabled.