- public void set_first_per_commitment_point(AcceptChannel this_ptr, byte[] val) {
- bindings.AcceptChannel_set_first_per_commitment_point(this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ public void set_first_per_commitment_point(byte[] val) {
+ bindings.AcceptChannel_set_first_per_commitment_point(this.ptr, val);
+ }
+
+ public byte[] write(AcceptChannel obj) {
+ byte[] ret = bindings.AcceptChannel_write(obj == null ? 0 : obj.ptr & ~1);
+ this.ptrs_to.add(obj);
+ return ret;
+ }
+
+ public static AcceptChannel constructor_read(byte[] ser) {
+ long ret = bindings.AcceptChannel_read(ser);
+ AcceptChannel ret_hu_conv = new AcceptChannel(null, ret);
+ return ret_hu_conv;