java.lang.Object
tech.deplant.java4ever.binding.ffi.ton_client
ton_client relies on preview features of the Java platform:
ton_clientrefers to one or more preview APIs:MemorySegment,OfAddress,OfByte,OfDouble,OfFloat,OfInt,OfLong,OfShort,SegmentAllocator.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValueLayout.OfBytePREVIEWstatic final ValueLayout.OfDoublePREVIEWstatic final ValueLayout.OfFloatPREVIEWstatic final ValueLayout.OfIntPREVIEWstatic final ValueLayout.OfIntPREVIEWstatic final ValueLayout.OfLongPREVIEWstatic final ValueLayout.OfAddressPREVIEWstatic final ValueLayout.OfShortPREVIEWstatic final ValueLayout.OfShortPREVIEWtypedef short int_fast16_t;static final ValueLayout.OfIntPREVIEWtypedef int int_fast32_t;static final ValueLayout.OfLongPREVIEWtypedef long long int_fast64_t;static final ValueLayout.OfBytePREVIEWtypedef signed char int_fast8_t;static final ValueLayout.OfShortPREVIEWtypedef short int_least16_t;static final ValueLayout.OfIntPREVIEWtypedef int int_least32_t;static final ValueLayout.OfLongPREVIEWtypedef long long int_least64_t;static final ValueLayout.OfBytePREVIEWtypedef signed char int_least8_t;static final ValueLayout.OfShortPREVIEWtypedef short int16_t;static final ValueLayout.OfIntPREVIEWtypedef int int32_t;static final ValueLayout.OfLongPREVIEWtypedef long long int64_t;static final ValueLayout.OfBytePREVIEWtypedef signed char int8_t;static final ValueLayout.OfLongPREVIEWtypedef long long intmax_t;static final ValueLayout.OfLongPREVIEWtypedef long long intptr_t;static final ValueLayout.OfShortPREVIEWtypedef unsigned short uint_fast16_t;static final ValueLayout.OfIntPREVIEWtypedef unsigned int uint_fast32_t;static final ValueLayout.OfLongPREVIEWtypedef unsigned long long uint_fast64_t;static final ValueLayout.OfBytePREVIEWtypedef unsigned char uint_fast8_t;static final ValueLayout.OfShortPREVIEWtypedef unsigned short uint_least16_t;static final ValueLayout.OfIntPREVIEWtypedef unsigned int uint_least32_t;static final ValueLayout.OfLongPREVIEWtypedef unsigned long long uint_least64_t;static final ValueLayout.OfBytePREVIEWtypedef unsigned char uint_least8_t;static final ValueLayout.OfShortPREVIEWtypedef unsigned short uint16_t;static final ValueLayout.OfIntPREVIEWtypedef unsigned int uint32_t;static final ValueLayout.OfLongPREVIEWtypedef unsigned long long uint64_t;static final ValueLayout.OfBytePREVIEWtypedef unsigned char uint8_t;static final ValueLayout.OfLongPREVIEWtypedef unsigned long long uintmax_t;static final ValueLayout.OfLongPREVIEWtypedef unsigned long long uintptr_t; -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int#define __bool_true_false_are_defined 1static int#define __INT_LEAST16_MAX 32767static int#define __INT_LEAST16_MIN -32768static int#define __INT_LEAST32_MAX 2147483647static int#define __INT_LEAST32_MIN -2147483648static long#define __INT_LEAST64_MAX 9223372036854775807static long#define __INT_LEAST64_MIN -9223372036854775808static int#define __INT_LEAST8_MAX 127static int#define __INT_LEAST8_MIN -128static int#define __UINT_LEAST16_MAX 65535static int#define __UINT_LEAST32_MAX 4294967295static long#define __UINT_LEAST64_MAX -1static int#define __UINT_LEAST8_MAX 255static intfalse_()#define false 0static int#define INT_FAST16_MAX 32767static int#define INT_FAST16_MIN -32768static int#define INT_FAST32_MAX 2147483647static int#define INT_FAST32_MIN -2147483648static long#define INT_FAST64_MAX 9223372036854775807static long#define INT_FAST64_MIN -9223372036854775808static int#define INT_FAST8_MAX 127static int#define INT_FAST8_MIN -128static int#define INT_LEAST16_MAX 32767static int#define INT_LEAST16_MIN -32768static int#define INT_LEAST32_MAX 2147483647static int#define INT_LEAST32_MIN -2147483648static long#define INT_LEAST64_MAX 9223372036854775807static long#define INT_LEAST64_MIN -9223372036854775808static int#define INT_LEAST8_MAX 127static int#define INT_LEAST8_MIN -128static int#define INT16_MAX 32767static int#define INT16_MIN -32768static int#define INT32_MAX 2147483647static int#define INT32_MIN -2147483648static long#define INT64_MAX 9223372036854775807static long#define INT64_MIN -9223372036854775808static intINT8_MAX()#define INT8_MAX 127static intINT8_MIN()#define INT8_MIN -128static long#define INTMAX_MAX 9223372036854775807static long#define INTMAX_MIN -9223372036854775808static long#define INTPTR_MAX 9223372036854775807static long#define INTPTR_MIN -9223372036854775808static long#define PTRDIFF_MAX 9223372036854775807static long#define PTRDIFF_MIN -9223372036854775808static int#define SIG_ATOMIC_MAX 2147483647static int#define SIG_ATOMIC_MIN -2147483648static longSIZE_MAX()#define SIZE_MAX -1static MemorySegmentPREVIEWtc_string_handle_t* tc_create_context(tc_string_data_t config);static MethodHandlestatic voidtc_destroy_context(int context) void tc_destroy_context(uint32_t context);static MethodHandlestatic voidvoid tc_destroy_string(const tc_string_handle_t* handle);static MethodHandlestatic MemorySegmentPREVIEWtc_read_string(SegmentAllocatorPREVIEW allocator, MemorySegmentPREVIEW handle) tc_string_data_t tc_read_string(const tc_string_handle_t* handle);static MethodHandlestatic voidtc_request(int context, MemorySegmentPREVIEW function_name, MemorySegmentPREVIEW function_params_json, int request_id, MemorySegmentPREVIEW response_handler) void tc_request(uint32_t context, tc_string_data_t function_name, tc_string_data_t function_params_json, uint32_t request_id, tc_response_handler_t response_handler);static voidtc_request_ptr(int context, MemorySegmentPREVIEW function_name, MemorySegmentPREVIEW function_params_json, MemorySegmentPREVIEW request_ptr, MemorySegmentPREVIEW response_handler) void tc_request_ptr(uint32_t context, tc_string_data_t function_name, tc_string_data_t function_params_json, void* request_ptr, tc_response_handler_ptr_t response_handler);static MethodHandlestatic MemorySegmentPREVIEWtc_request_sync(int context, MemorySegmentPREVIEW function_name, MemorySegmentPREVIEW function_params_json) tc_string_handle_t* tc_request_sync(uint32_t context, tc_string_data_t function_name, tc_string_data_t function_params_json);static MethodHandlestatic MethodHandlestatic intenum tc_response_types.tc_response_app_notify = 4;static intenum tc_response_types.tc_response_app_request = 3;static intenum tc_response_types.tc_response_custom = 100;static intenum tc_response_types.tc_response_error = 1;static intenum tc_response_types.tc_response_nop = 2;static intenum tc_response_types.tc_response_success = 0;static inttrue_()#define true 1static int#define UINT_FAST16_MAX 65535static int#define UINT_FAST32_MAX 4294967295static long#define UINT_FAST64_MAX -1static int#define UINT_FAST8_MAX 255static int#define UINT_LEAST16_MAX 65535static int#define UINT_LEAST32_MAX 4294967295static long#define UINT_LEAST64_MAX -1static int#define UINT_LEAST8_MAX 255static int#define UINT16_MAX 65535static int#define UINT32_MAX 4294967295static long#define UINT64_MAX -1static int#define UINT8_MAX 255static long#define UINTMAX_MAX -1static long#define UINTPTR_MAX -1static int#define WCHAR_MAX 65535static int#define WCHAR_MIN 0static intWINT_MAX()#define WINT_MAX 65535static intWINT_MIN()#define WINT_MIN 0
-
Field Details
-
C_CHAR
-
C_SHORT
-
C_INT
-
C_LONG
-
C_LONG_LONG
-
C_FLOAT
-
C_DOUBLE
-
C_POINTER
-
int64_t
typedef long long int64_t; -
uint64_t
typedef unsigned long long uint64_t; -
int_least64_t
typedef long long int_least64_t; -
uint_least64_t
typedef unsigned long long uint_least64_t; -
int_fast64_t
typedef long long int_fast64_t; -
uint_fast64_t
typedef unsigned long long uint_fast64_t; -
int32_t
typedef int int32_t; -
uint32_t
typedef unsigned int uint32_t; -
int_least32_t
typedef int int_least32_t; -
uint_least32_t
typedef unsigned int uint_least32_t; -
int_fast32_t
typedef int int_fast32_t; -
uint_fast32_t
typedef unsigned int uint_fast32_t; -
int16_t
typedef short int16_t; -
uint16_t
typedef unsigned short uint16_t; -
int_least16_t
typedef short int_least16_t; -
uint_least16_t
typedef unsigned short uint_least16_t; -
int_fast16_t
typedef short int_fast16_t; -
uint_fast16_t
typedef unsigned short uint_fast16_t; -
int8_t
typedef signed char int8_t; -
uint8_t
typedef unsigned char uint8_t; -
int_least8_t
typedef signed char int_least8_t; -
uint_least8_t
typedef unsigned char uint_least8_t; -
int_fast8_t
typedef signed char int_fast8_t; -
uint_fast8_t
typedef unsigned char uint_fast8_t; -
intptr_t
typedef long long intptr_t; -
uintptr_t
typedef unsigned long long uintptr_t; -
intmax_t
typedef long long intmax_t; -
uintmax_t
typedef unsigned long long uintmax_t;
-
-
Constructor Details
-
ton_client
public ton_client()
-
-
Method Details
-
true_
public static int true_()#define true 1 -
false_
public static int false_()#define false 0 -
__bool_true_false_are_defined
public static int __bool_true_false_are_defined()#define __bool_true_false_are_defined 1 -
tc_response_success
public static int tc_response_success()enum tc_response_types.tc_response_success = 0; -
tc_response_error
public static int tc_response_error()enum tc_response_types.tc_response_error = 1; -
tc_response_nop
public static int tc_response_nop()enum tc_response_types.tc_response_nop = 2; -
tc_response_app_request
public static int tc_response_app_request()enum tc_response_types.tc_response_app_request = 3; -
tc_response_app_notify
public static int tc_response_app_notify()enum tc_response_types.tc_response_app_notify = 4; -
tc_response_custom
public static int tc_response_custom()enum tc_response_types.tc_response_custom = 100; -
tc_create_context$MH
-
tc_create_context
tc_string_handle_t* tc_create_context(tc_string_data_t config); -
tc_destroy_context$MH
-
tc_destroy_context
public static void tc_destroy_context(int context) void tc_destroy_context(uint32_t context); -
tc_request$MH
-
tc_request
public static void tc_request(int context, MemorySegmentPREVIEW function_name, MemorySegmentPREVIEW function_params_json, int request_id, MemorySegmentPREVIEW response_handler) void tc_request(uint32_t context, tc_string_data_t function_name, tc_string_data_t function_params_json, uint32_t request_id, tc_response_handler_t response_handler); -
tc_request_ptr$MH
-
tc_request_ptr
public static void tc_request_ptr(int context, MemorySegmentPREVIEW function_name, MemorySegmentPREVIEW function_params_json, MemorySegmentPREVIEW request_ptr, MemorySegmentPREVIEW response_handler) void tc_request_ptr(uint32_t context, tc_string_data_t function_name, tc_string_data_t function_params_json, void* request_ptr, tc_response_handler_ptr_t response_handler); -
tc_request_sync$MH
-
tc_request_sync
public static MemorySegmentPREVIEW tc_request_sync(int context, MemorySegmentPREVIEW function_name, MemorySegmentPREVIEW function_params_json) tc_string_handle_t* tc_request_sync(uint32_t context, tc_string_data_t function_name, tc_string_data_t function_params_json); -
tc_read_string$MH
-
tc_read_string
public static MemorySegmentPREVIEW tc_read_string(SegmentAllocatorPREVIEW allocator, MemorySegmentPREVIEW handle) tc_string_data_t tc_read_string(const tc_string_handle_t* handle); -
tc_destroy_string$MH
-
tc_destroy_string
void tc_destroy_string(const tc_string_handle_t* handle); -
INT64_MAX
public static long INT64_MAX()#define INT64_MAX 9223372036854775807 -
INT64_MIN
public static long INT64_MIN()#define INT64_MIN -9223372036854775808 -
UINT64_MAX
public static long UINT64_MAX()#define UINT64_MAX -1 -
__INT_LEAST64_MIN
public static long __INT_LEAST64_MIN()#define __INT_LEAST64_MIN -9223372036854775808 -
__INT_LEAST64_MAX
public static long __INT_LEAST64_MAX()#define __INT_LEAST64_MAX 9223372036854775807 -
__UINT_LEAST64_MAX
public static long __UINT_LEAST64_MAX()#define __UINT_LEAST64_MAX -1 -
__INT_LEAST32_MIN
public static int __INT_LEAST32_MIN()#define __INT_LEAST32_MIN -2147483648 -
__INT_LEAST32_MAX
public static int __INT_LEAST32_MAX()#define __INT_LEAST32_MAX 2147483647 -
__UINT_LEAST32_MAX
public static int __UINT_LEAST32_MAX()#define __UINT_LEAST32_MAX 4294967295 -
__INT_LEAST16_MIN
public static int __INT_LEAST16_MIN()#define __INT_LEAST16_MIN -32768 -
__INT_LEAST16_MAX
public static int __INT_LEAST16_MAX()#define __INT_LEAST16_MAX 32767 -
__UINT_LEAST16_MAX
public static int __UINT_LEAST16_MAX()#define __UINT_LEAST16_MAX 65535 -
__INT_LEAST8_MIN
public static int __INT_LEAST8_MIN()#define __INT_LEAST8_MIN -128 -
__INT_LEAST8_MAX
public static int __INT_LEAST8_MAX()#define __INT_LEAST8_MAX 127 -
__UINT_LEAST8_MAX
public static int __UINT_LEAST8_MAX()#define __UINT_LEAST8_MAX 255 -
INT_LEAST64_MIN
public static long INT_LEAST64_MIN()#define INT_LEAST64_MIN -9223372036854775808 -
INT_LEAST64_MAX
public static long INT_LEAST64_MAX()#define INT_LEAST64_MAX 9223372036854775807 -
UINT_LEAST64_MAX
public static long UINT_LEAST64_MAX()#define UINT_LEAST64_MAX -1 -
INT_FAST64_MIN
public static long INT_FAST64_MIN()#define INT_FAST64_MIN -9223372036854775808 -
INT_FAST64_MAX
public static long INT_FAST64_MAX()#define INT_FAST64_MAX 9223372036854775807 -
UINT_FAST64_MAX
public static long UINT_FAST64_MAX()#define UINT_FAST64_MAX -1 -
INT32_MAX
public static int INT32_MAX()#define INT32_MAX 2147483647 -
INT32_MIN
public static int INT32_MIN()#define INT32_MIN -2147483648 -
UINT32_MAX
public static int UINT32_MAX()#define UINT32_MAX 4294967295 -
INT_LEAST32_MIN
public static int INT_LEAST32_MIN()#define INT_LEAST32_MIN -2147483648 -
INT_LEAST32_MAX
public static int INT_LEAST32_MAX()#define INT_LEAST32_MAX 2147483647 -
UINT_LEAST32_MAX
public static int UINT_LEAST32_MAX()#define UINT_LEAST32_MAX 4294967295 -
INT_FAST32_MIN
public static int INT_FAST32_MIN()#define INT_FAST32_MIN -2147483648 -
INT_FAST32_MAX
public static int INT_FAST32_MAX()#define INT_FAST32_MAX 2147483647 -
UINT_FAST32_MAX
public static int UINT_FAST32_MAX()#define UINT_FAST32_MAX 4294967295 -
INT16_MAX
public static int INT16_MAX()#define INT16_MAX 32767 -
INT16_MIN
public static int INT16_MIN()#define INT16_MIN -32768 -
UINT16_MAX
public static int UINT16_MAX()#define UINT16_MAX 65535 -
INT_LEAST16_MIN
public static int INT_LEAST16_MIN()#define INT_LEAST16_MIN -32768 -
INT_LEAST16_MAX
public static int INT_LEAST16_MAX()#define INT_LEAST16_MAX 32767 -
UINT_LEAST16_MAX
public static int UINT_LEAST16_MAX()#define UINT_LEAST16_MAX 65535 -
INT_FAST16_MIN
public static int INT_FAST16_MIN()#define INT_FAST16_MIN -32768 -
INT_FAST16_MAX
public static int INT_FAST16_MAX()#define INT_FAST16_MAX 32767 -
UINT_FAST16_MAX
public static int UINT_FAST16_MAX()#define UINT_FAST16_MAX 65535 -
INT8_MAX
public static int INT8_MAX()#define INT8_MAX 127 -
INT8_MIN
public static int INT8_MIN()#define INT8_MIN -128 -
UINT8_MAX
public static int UINT8_MAX()#define UINT8_MAX 255 -
INT_LEAST8_MIN
public static int INT_LEAST8_MIN()#define INT_LEAST8_MIN -128 -
INT_LEAST8_MAX
public static int INT_LEAST8_MAX()#define INT_LEAST8_MAX 127 -
UINT_LEAST8_MAX
public static int UINT_LEAST8_MAX()#define UINT_LEAST8_MAX 255 -
INT_FAST8_MIN
public static int INT_FAST8_MIN()#define INT_FAST8_MIN -128 -
INT_FAST8_MAX
public static int INT_FAST8_MAX()#define INT_FAST8_MAX 127 -
UINT_FAST8_MAX
public static int UINT_FAST8_MAX()#define UINT_FAST8_MAX 255 -
INTPTR_MIN
public static long INTPTR_MIN()#define INTPTR_MIN -9223372036854775808 -
INTPTR_MAX
public static long INTPTR_MAX()#define INTPTR_MAX 9223372036854775807 -
UINTPTR_MAX
public static long UINTPTR_MAX()#define UINTPTR_MAX -1 -
PTRDIFF_MIN
public static long PTRDIFF_MIN()#define PTRDIFF_MIN -9223372036854775808 -
PTRDIFF_MAX
public static long PTRDIFF_MAX()#define PTRDIFF_MAX 9223372036854775807 -
SIZE_MAX
public static long SIZE_MAX()#define SIZE_MAX -1 -
INTMAX_MIN
public static long INTMAX_MIN()#define INTMAX_MIN -9223372036854775808 -
INTMAX_MAX
public static long INTMAX_MAX()#define INTMAX_MAX 9223372036854775807 -
UINTMAX_MAX
public static long UINTMAX_MAX()#define UINTMAX_MAX -1 -
SIG_ATOMIC_MIN
public static int SIG_ATOMIC_MIN()#define SIG_ATOMIC_MIN -2147483648 -
SIG_ATOMIC_MAX
public static int SIG_ATOMIC_MAX()#define SIG_ATOMIC_MAX 2147483647 -
WINT_MIN
public static int WINT_MIN()#define WINT_MIN 0 -
WINT_MAX
public static int WINT_MAX()#define WINT_MAX 65535 -
WCHAR_MAX
public static int WCHAR_MAX()#define WCHAR_MAX 65535 -
WCHAR_MIN
public static int WCHAR_MIN()#define WCHAR_MIN 0
-
ton_clientwhen preview features are enabled.