[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / TwoTuple_u32CVec_u8ZZ.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_u32CVec_u8ZZ : CommonBase {
13         internal TwoTuple_u32CVec_u8ZZ(object _dummy, long ptr) : base(ptr) { }
14         ~TwoTuple_u32CVec_u8ZZ() {
15                 if (ptr != 0) { bindings.C2Tuple_u32CVec_u8ZZ_free(ptr); }
16         }
17
18         /**
19          * 
20          */
21         public int get_a() {
22                 int ret = bindings.C2Tuple_u32CVec_u8ZZ_get_a(this.ptr);
23                 GC.KeepAlive(this);
24                 return ret;
25         }
26
27         /**
28          * 
29          */
30         public byte[] get_b() {
31                 long ret = bindings.C2Tuple_u32CVec_u8ZZ_get_b(this.ptr);
32                 GC.KeepAlive(this);
33                 if (ret >= 0 && ret <= 4096) { return null; }
34                 byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
35                 return ret_conv;
36         }
37
38         internal long clone_ptr() {
39                 long ret = bindings.C2Tuple_u32CVec_u8ZZ_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_u32CVec_u8ZZ clone() {
49                 long ret = bindings.C2Tuple_u32CVec_u8ZZ_clone(this.ptr);
50                 GC.KeepAlive(this);
51                 if (ret >= 0 && ret <= 4096) { return null; }
52                 TwoTuple_u32CVec_u8ZZ ret_hu_conv = new TwoTuple_u32CVec_u8ZZ(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_u32CVec_u8ZZ from the contained elements.
59          */
60         public static TwoTuple_u32CVec_u8ZZ of(int a, byte[] b) {
61                 long ret = bindings.C2Tuple_u32CVec_u8ZZ_new(a, InternalUtils.encodeUint8Array(b));
62                 GC.KeepAlive(a);
63                 GC.KeepAlive(b);
64                 if (ret >= 0 && ret <= 4096) { return null; }
65                 TwoTuple_u32CVec_u8ZZ ret_hu_conv = new TwoTuple_u32CVec_u8ZZ(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 } } }