6 namespace org { namespace ldk { namespace structs {
12 public class TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ : CommonBase {
13 internal TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ(object _dummy, long ptr) : base(ptr) { }
14 ~TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ() {
15 if (ptr != 0) { bindings.C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(ptr); }
21 public byte[] get_a() {
22 long ret = bindings.C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_a(this.ptr);
24 if (ret >= 0 && ret <= 4096) { return null; }
25 byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
32 public byte[] get_b() {
33 long ret = bindings.C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_b(this.ptr);
35 if (ret >= 0 && ret <= 4096) { return null; }
36 byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
40 internal long clone_ptr() {
41 long ret = bindings.C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr(this.ptr);
47 * Creates a new tuple which has the same data as `orig`
48 * but with all dynamically-allocated buffers duplicated in new buffers.
50 public TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ clone() {
51 long ret = bindings.C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(this.ptr);
53 if (ret >= 0 && ret <= 4096) { return null; }
54 TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ ret_hu_conv = new TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ(null, ret);
55 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
60 * Creates a new C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ from the contained elements.
62 public static TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ of(byte[] a, byte[] b) {
63 long ret = bindings.C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(b, 32)));
66 if (ret >= 0 && ret <= 4096) { return null; }
67 TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ ret_hu_conv = new TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ(null, ret);
68 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };