X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FInitFeatures.ts;fp=ts%2Fstructs%2FInitFeatures.ts;h=a1dee177b6f29e323198b89d3717e89e5386b955;hb=246459dcbc3be28c38b4951140a5933f4b3aa024;hp=e38641d2b125df40d1480d203ab87d4b6080d0da;hpb=b52dde859c138f9257499496749d1eb89f9f6f43;p=ldk-java diff --git a/ts/structs/InitFeatures.ts b/ts/structs/InitFeatures.ts index e38641d2..a1dee177 100644 --- a/ts/structs/InitFeatures.ts +++ b/ts/structs/InitFeatures.ts @@ -18,4 +18,36 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.InitFeatures_free(this.ptr); } } + public InitFeatures clone() { + number ret = bindings.InitFeatures_clone(this.ptr); + const ret_hu_conv: InitFeatures = new InitFeatures(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + + public static InitFeatures constructor_empty() { + number ret = bindings.InitFeatures_empty(); + const ret_hu_conv: InitFeatures = new InitFeatures(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + + public static InitFeatures constructor_known() { + number ret = bindings.InitFeatures_known(); + const ret_hu_conv: InitFeatures = new InitFeatures(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + + public Uint8Array write() { + Uint8Array ret = bindings.InitFeatures_write(this.ptr); + return ret; + } + + public static Result_InitFeaturesDecodeErrorZ constructor_read(Uint8Array ser) { + number ret = bindings.InitFeatures_read(ser); + Result_InitFeaturesDecodeErrorZ ret_hu_conv = Result_InitFeaturesDecodeErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + }