- // Skipped QueryShortChannelIds_set_short_channel_ids
- // Skipped QueryShortChannelIds_new
- public QueryShortChannelIds(byte[] ser) {
- super(bindings.QueryShortChannelIds_read(ser));
+ /**
+ * Creates a copy of the QueryShortChannelIds
+ */
+ public QueryShortChannelIds clone() {
+ long ret = bindings.QueryShortChannelIds_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ QueryShortChannelIds ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new QueryShortChannelIds(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Read a QueryShortChannelIds from a byte array, created by QueryShortChannelIds_write
+ */
+ public static Result_QueryShortChannelIdsDecodeErrorZ read(byte[] ser) {
+ long ret = bindings.QueryShortChannelIds_read(ser);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Serialize the QueryShortChannelIds object into a byte array which can be read by QueryShortChannelIds_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.QueryShortChannelIds_write(this.ptr);
+ return ret;