From d6b29e8c888b655f7a8a03e472494de8a091705e Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 6 Nov 2023 22:34:29 +0000 Subject: [PATCH] [C#] Correct a few things after converting C array handling to the TS one --- csharp_strings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csharp_strings.py b/csharp_strings.py index 4df1d34c..74acd160 100644 --- a/csharp_strings.py +++ b/csharp_strings.py @@ -441,9 +441,9 @@ namespace org { namespace ldk { namespace structs { self.usize_native_ty = "long" self.native_zero_ptr = "0" self.unitary_enum_c_ty = "int32_t" - self.ptr_arr = "jobjectArray" + self.ptr_arr = "ptrArray" self.is_arr_some_check = ("", " != NULL") - self.get_native_arr_len_call = ("(*env)->GetArrayLength(env, ", ")") + self.get_native_arr_len_call = ("", "->arr_len") self.bindings_footer_wip = "\tstatic bindings() {\n" def bindings_footer(self): -- 2.39.5