X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FTwoTuple_PublicKeyTypeZ.cs;h=812bfe86f74fd0ecf7e8c403e4c566e2b41352ef;hb=8de7213fbf663ff60322896282dad51e8ab2f001;hp=4c3352fd4a5f7a9ef83de2c32aa75efe69b5792f;hpb=afc50e5d491a11364849383b75a8f939df703bac;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyTypeZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyTypeZ.cs index 4c3352fd..812bfe86 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyTypeZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyTypeZ.cs @@ -19,9 +19,11 @@ public class TwoTuple_PublicKeyTypeZ : CommonBase { * */ public byte[] get_a() { - byte[] ret = bindings.C2Tuple_PublicKeyTypeZ_get_a(this.ptr); + long ret = bindings.C2Tuple_PublicKeyTypeZ_get_a(this.ptr); GC.KeepAlive(this); - return ret; + if (ret >= 0 && ret <= 4096) { return null; } + byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + return ret_conv; } /** @@ -59,7 +61,7 @@ public class TwoTuple_PublicKeyTypeZ : CommonBase { * Creates a new C2Tuple_PublicKeyTypeZ from the contained elements. */ public static TwoTuple_PublicKeyTypeZ of(byte[] a, org.ldk.structs.Type b) { - long ret = bindings.C2Tuple_PublicKeyTypeZ_new(InternalUtils.check_arr_len(a, 33), b.ptr); + long ret = bindings.C2Tuple_PublicKeyTypeZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 33)), b.ptr); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; }