X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FNodeFeatures.ts;h=f9a4c13afe3505c777ac104fc8ce07fc8ca41333;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=13652f14d720313d86d2b5443342e64ec9770bf6;hpb=246459dcbc3be28c38b4951140a5933f4b3aa024;p=ldk-java diff --git a/ts/structs/NodeFeatures.ts b/ts/structs/NodeFeatures.ts index 13652f14..f9a4c13a 100644 --- a/ts/structs/NodeFeatures.ts +++ b/ts/structs/NodeFeatures.ts @@ -18,6 +18,17 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.NodeFeatures_free(this.ptr); } } + public boolean eq(NodeFeatures b) { + boolean ret = bindings.NodeFeatures_eq(this.ptr, b == null ? 0 : b.ptr & ~1); + this.ptrs_to.add(b); + return ret; + } + + public number clone_ptr() { + number ret = bindings.NodeFeatures_clone_ptr(this.ptr); + return ret; + } + public NodeFeatures clone() { number ret = bindings.NodeFeatures_clone(this.ptr); const ret_hu_conv: NodeFeatures = new NodeFeatures(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.NodeFeatures_requires_unknown_bits(this.ptr); + return ret; + } + public Uint8Array write() { Uint8Array ret = bindings.NodeFeatures_write(this.ptr); return ret;