+ /**
+ * Releases any [`Self::CustomMessage`]s that need to be sent.
+ *
+ * Typically, this is used for messages initiating a message flow rather than in response to
+ * another message. The latter should use the return value of [`Self::handle_custom_message`].
+ */
+ public release_pending_custom_messages(): ThreeTuple_OnionMessageContentsDestinationBlindedPathZ[] {
+ const ret: number = bindings.CustomOnionMessageHandler_release_pending_custom_messages(this.ptr);
+ const ret_conv_56_len: number = bindings.getArrayLength(ret);
+ const ret_conv_56_arr: ThreeTuple_OnionMessageContentsDestinationBlindedPathZ[] = new Array(ret_conv_56_len).fill(null);
+ for (var e = 0; e < ret_conv_56_len; e++) {
+ const ret_conv_56: bigint = bindings.getU64ArrayElem(ret, e);
+ const ret_conv_56_hu_conv: ThreeTuple_OnionMessageContentsDestinationBlindedPathZ = new ThreeTuple_OnionMessageContentsDestinationBlindedPathZ(null, ret_conv_56);
+ CommonBase.add_ref_from(ret_conv_56_hu_conv, this);
+ ret_conv_56_arr[e] = ret_conv_56_hu_conv;
+ }
+ bindings.freeWasmMemory(ret)
+ return ret_conv_56_arr;
+ }
+