From: Matt Corallo Date: Mon, 6 Nov 2023 22:34:29 +0000 (+0000) Subject: [C#] Correct a few things after converting C array handling to the TS one X-Git-Tag: v0.0.118.0-alpha0~13 X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=commitdiff_plain;h=d6b29e8c888b655f7a8a03e472494de8a091705e [C#] Correct a few things after converting C array handling to the TS one --- 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):