[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / TwoTuple_CVec_u8Zu64Z.cs
1 using org.ldk.impl;
2 using org.ldk.enums;
3 using org.ldk.util;
4 using System;
5
6 namespace org { namespace ldk { namespace structs {
7
8
9 /**
10  * A Tuple
11  */
12 public class TwoTuple_CVec_u8Zu64Z : CommonBase {
13         internal TwoTuple_CVec_u8Zu64Z(object _dummy, long ptr) : base(ptr) { }
14         ~TwoTuple_CVec_u8Zu64Z() {
15                 if (ptr != 0) { bindings.C2Tuple_CVec_u8Zu64Z_free(ptr); }
16         }
17
18         /**
19          * 
20          */
21         public byte[] get_a() {
22                 long ret = bindings.C2Tuple_CVec_u8Zu64Z_get_a(this.ptr);
23                 GC.KeepAlive(this);
24                 if (ret >= 0 && ret <= 4096) { return null; }
25                 byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
26                 return ret_conv;
27         }
28
29         /**
30          * 
31          */
32         public long get_b() {
33                 long ret = bindings.C2Tuple_CVec_u8Zu64Z_get_b(this.ptr);
34                 GC.KeepAlive(this);
35                 return ret;
36         }
37
38         internal long clone_ptr() {
39                 long ret = bindings.C2Tuple_CVec_u8Zu64Z_clone_ptr(this.ptr);
40                 GC.KeepAlive(this);
41                 return ret;
42         }
43
44         /**
45          * Creates a new tuple which has the same data as `orig`
46          * but with all dynamically-allocated buffers duplicated in new buffers.
47          */
48         public TwoTuple_CVec_u8Zu64Z clone() {
49                 long ret = bindings.C2Tuple_CVec_u8Zu64Z_clone(this.ptr);
50                 GC.KeepAlive(this);
51                 if (ret >= 0 && ret <= 4096) { return null; }
52                 TwoTuple_CVec_u8Zu64Z ret_hu_conv = new TwoTuple_CVec_u8Zu64Z(null, ret);
53                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
54                 return ret_hu_conv;
55         }
56
57         /**
58          * Creates a new C2Tuple_CVec_u8Zu64Z from the contained elements.
59          */
60         public static TwoTuple_CVec_u8Zu64Z of(byte[] a, long b) {
61                 long ret = bindings.C2Tuple_CVec_u8Zu64Z_new(InternalUtils.encodeUint8Array(a), b);
62                 GC.KeepAlive(a);
63                 GC.KeepAlive(b);
64                 if (ret >= 0 && ret <= 4096) { return null; }
65                 TwoTuple_CVec_u8Zu64Z ret_hu_conv = new TwoTuple_CVec_u8Zu64Z(null, ret);
66                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
67                 return ret_hu_conv;
68         }
69
70 }
71 } } }