- public byte[] write(ChannelUpdate obj) {
- byte[] ret = bindings.ChannelUpdate_write(obj == null ? 0 : obj.ptr & ~1);
- this.ptrs_to.add(obj);
+ public ChannelUpdate clone() {
+ long ret = bindings.ChannelUpdate_clone(this.ptr);
+ ChannelUpdate ret_hu_conv = new ChannelUpdate(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ public byte[] write() {
+ byte[] ret = bindings.ChannelUpdate_write(this.ptr);