X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FChannelFeatures.ts;h=305b3a2160a807b3c8f792a9bf422958d3609929;hb=0fee03a8095f5599f8eccd920c1b1af6b3a20260;hp=1b6dd141a278d76e001a56a62116ba64db01843b;hpb=246459dcbc3be28c38b4951140a5933f4b3aa024;p=ldk-java diff --git a/ts/structs/ChannelFeatures.ts b/ts/structs/ChannelFeatures.ts index 1b6dd141..305b3a21 100644 --- a/ts/structs/ChannelFeatures.ts +++ b/ts/structs/ChannelFeatures.ts @@ -18,6 +18,17 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ChannelFeatures_free(this.ptr); } } + public boolean eq(ChannelFeatures b) { + boolean ret = bindings.ChannelFeatures_eq(this.ptr, b == null ? 0 : b.ptr & ~1); + this.ptrs_to.add(b); + return ret; + } + + public number clone_ptr() { + number ret = bindings.ChannelFeatures_clone_ptr(this.ptr); + return ret; + } + public ChannelFeatures clone() { number ret = bindings.ChannelFeatures_clone(this.ptr); const ret_hu_conv: ChannelFeatures = new ChannelFeatures(null, ret); @@ -39,6 +50,11 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public boolean requires_unknown_bits() { + boolean ret = bindings.ChannelFeatures_requires_unknown_bits(this.ptr); + return ret; + } + public Uint8Array write() { Uint8Array ret = bindings.ChannelFeatures_write(this.ptr); return ret;