]> git.bitcoin.ninja Git - ldk-java/commitdiff
[C#] Correct a few things after converting C array handling to the TS one
authorMatt Corallo <git@bluematt.me>
Mon, 6 Nov 2023 22:34:29 +0000 (22:34 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 7 Nov 2023 23:43:35 +0000 (23:43 +0000)
csharp_strings.py

index 4df1d34c688fb5d4b1d976cbbcfc75b64546446c..74acd16007916f57e312176df142841a5659ca16 100644 (file)
@@ -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):