6 namespace org { namespace ldk { namespace structs {
10 * Quantity of items supported by an [`Offer`].
12 public class Quantity : CommonBase {
13 internal Quantity(object _dummy, long ptr) : base(ptr) { }
15 if (ptr != 0) { bindings.Quantity_free(ptr); }
18 internal long clone_ptr() {
19 long ret = bindings.Quantity_clone_ptr(this.ptr);
25 * Creates a copy of the Quantity
27 public Quantity clone() {
28 long ret = bindings.Quantity_clone(this.ptr);
30 if (ret >= 0 && ret <= 4096) { return null; }
31 org.ldk.structs.Quantity ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Quantity(null, ret); }
32 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };