6 namespace org { namespace ldk { namespace structs {
10 * A locked `MultiThreadedLockableScore`.
12 public class MultiThreadedScoreLock : CommonBase {
13 internal MultiThreadedScoreLock(object _dummy, long ptr) : base(ptr) { }
14 ~MultiThreadedScoreLock() {
15 if (ptr != 0) { bindings.MultiThreadedScoreLock_free(ptr); }
19 * Constructs a new Score which calls the relevant methods on this_arg.
20 * This copies the `inner` pointer in this_arg and thus the returned Score must be freed before this_arg is
22 public Score as_Score() {
23 long ret = bindings.MultiThreadedScoreLock_as_Score(this.ptr);
25 if (ret >= 0 && ret <= 4096) { return null; }
26 Score ret_hu_conv = new Score(null, ret);
27 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
32 * Serialize the MultiThreadedScoreLock object into a byte array which can be read by MultiThreadedScoreLock_read
34 public byte[] write() {
35 byte[] ret = bindings.MultiThreadedScoreLock_write(this.ptr);