X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FMultiThreadedScoreLock.cs;fp=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FMultiThreadedScoreLock.cs;h=9e8ee9562f0c503ad8f8ee7eec545fe5af39ef0c;hb=c6777737ea14e7814b0fa7d6fe16536f31d4a82b;hp=521eaf898c9e323e3f9896c362cc712c220d58ea;hpb=ee72c84d4bf9e2404e02fe20155efb502ceaee1b;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/MultiThreadedScoreLock.cs b/c_sharp/src/org/ldk/structs/MultiThreadedScoreLock.cs index 521eaf89..9e8ee956 100644 --- a/c_sharp/src/org/ldk/structs/MultiThreadedScoreLock.cs +++ b/c_sharp/src/org/ldk/structs/MultiThreadedScoreLock.cs @@ -15,6 +15,15 @@ public class MultiThreadedScoreLock : CommonBase { if (ptr != 0) { bindings.MultiThreadedScoreLock_free(ptr); } } + /** + * Serialize the MultiThreadedScoreLock object into a byte array which can be read by MultiThreadedScoreLock_read + */ + public byte[] write() { + byte[] ret = bindings.MultiThreadedScoreLock_write(this.ptr); + GC.KeepAlive(this); + return ret; + } + /** * Constructs a new Score which calls the relevant methods on this_arg. * This copies the `inner` pointer in this_arg and thus the returned Score must be freed before this_arg is @@ -28,14 +37,5 @@ public class MultiThreadedScoreLock : CommonBase { return ret_hu_conv; } - /** - * Serialize the MultiThreadedScoreLock object into a byte array which can be read by MultiThreadedScoreLock_read - */ - public byte[] write() { - byte[] ret = bindings.MultiThreadedScoreLock_write(this.ptr); - GC.KeepAlive(this); - return ret; - } - } } } }