java.lang.Object
tech.deplant.java4ever.binding.ffi.SdkBridge
SdkBridge
relies on preview features of the Java platform:
SdkBridge
refers to one or more preview APIs:MemorySegment
,SegmentScope
.
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 String
tcCreateContext
(LibraryLoader loader, String configJson) static SdkResponseHandler
tcRequest
(int contextId, int requestId, String functionName, String params, Consumer<CallbackHandler> consumer) static MemorySegmentPREVIEW
toRustString
(String text, SegmentScopePREVIEW scope) static String
toString
(MemorySegmentPREVIEW seg, SegmentScopePREVIEW scope)
-
Constructor Details
-
SdkBridge
public SdkBridge()
-
-
Method Details
-
tcCreateContext
-
tcRequest
public static SdkResponseHandler tcRequest(int contextId, int requestId, String functionName, String params, Consumer<CallbackHandler> consumer) -
toRustString
-
toString
-
SdkBridge
when preview features are enabled.