6 namespace org { namespace ldk { namespace structs {
10 * Recoverable signature
12 public class Bolt11InvoiceSignature : CommonBase {
13 internal Bolt11InvoiceSignature(object _dummy, long ptr) : base(ptr) { }
14 ~Bolt11InvoiceSignature() {
15 if (ptr != 0) { bindings.Bolt11InvoiceSignature_free(ptr); }
18 internal long clone_ptr() {
19 long ret = bindings.Bolt11InvoiceSignature_clone_ptr(this.ptr);
25 * Creates a copy of the Bolt11InvoiceSignature
27 public Bolt11InvoiceSignature clone() {
28 long ret = bindings.Bolt11InvoiceSignature_clone(this.ptr);
30 if (ret >= 0 && ret <= 4096) { return null; }
31 org.ldk.structs.Bolt11InvoiceSignature ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt11InvoiceSignature(null, ret); }
32 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
37 * Generates a non-cryptographic 64-bit hash of the Bolt11InvoiceSignature.
40 long ret = bindings.Bolt11InvoiceSignature_hash(this.ptr);
45 public override int GetHashCode() {
46 return (int)this.hash();
49 * Checks if two Bolt11InvoiceSignatures contain equal inner contents.
50 * This ignores pointers and is_owned flags and looks at the values in fields.
51 * Two objects with NULL inner values will be considered "equal" here.
53 public bool eq(org.ldk.structs.Bolt11InvoiceSignature b) {
54 bool ret = bindings.Bolt11InvoiceSignature_eq(this.ptr, b == null ? 0 : b.ptr);
57 if (this != null) { this.ptrs_to.AddLast(b); };
61 public override bool Equals(object o) {
62 if (!(o is Bolt11InvoiceSignature)) return false;
63 return this.eq((Bolt11InvoiceSignature)o);