X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FRouteHop.ts;h=2a3044225be95e4ac3688d12ab1ef601a1472316;hb=b6cc0960eaee5a5bbc7fde79a56152d6dcd649d8;hp=3d9e3386c2603688842128fb542778444e23a85c;hpb=fb06c6af463da9aa188980c750f787f5e936634a;p=ldk-java diff --git a/ts/structs/RouteHop.ts b/ts/structs/RouteHop.ts index 3d9e3386..2a304422 100644 --- a/ts/structs/RouteHop.ts +++ b/ts/structs/RouteHop.ts @@ -94,4 +94,15 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public Uint8Array write() { + Uint8Array ret = bindings.RouteHop_write(this.ptr); + return ret; + } + + public static Result_RouteHopDecodeErrorZ constructor_read(Uint8Array ser) { + number ret = bindings.RouteHop_read(ser); + Result_RouteHopDecodeErrorZ ret_hu_conv = Result_RouteHopDecodeErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + }