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