- // Skipped ChannelInfo_write
- public ChannelInfo(byte[] ser) {
- super(bindings.ChannelInfo_read(ser));
+ /**
+ * Creates a copy of the ChannelInfo
+ */
+ public ChannelInfo clone() {
+ long ret = bindings.ChannelInfo_clone(this.ptr);
+ ChannelInfo ret_hu_conv = new ChannelInfo(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Serialize the ChannelInfo object into a byte array which can be read by ChannelInfo_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.ChannelInfo_write(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Read a ChannelInfo from a byte array, created by ChannelInfo_write
+ */
+ public static Result_ChannelInfoDecodeErrorZ constructor_read(byte[] ser) {
+ long ret = bindings.ChannelInfo_read(ser);
+ Result_ChannelInfoDecodeErrorZ ret_hu_conv = Result_ChannelInfoDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;