if (ptr != 0) { bindings.GossipTimestampFilter_free(ptr); }
}
- public static GossipTimestampFilter constructor_clone(GossipTimestampFilter orig) {
- long ret = bindings.GossipTimestampFilter_clone(orig == null ? 0 : orig.ptr & ~1);
- GossipTimestampFilter ret_hu_conv = new GossipTimestampFilter(null, ret);
- ret_hu_conv.ptrs_to.add(orig);
- return ret_hu_conv;
- }
-
public byte[] get_chain_hash() {
byte[] ret = bindings.GossipTimestampFilter_get_chain_hash(this.ptr);
return ret;
public static GossipTimestampFilter constructor_new(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg) {
long ret = bindings.GossipTimestampFilter_new(chain_hash_arg, first_timestamp_arg, timestamp_range_arg);
GossipTimestampFilter ret_hu_conv = new GossipTimestampFilter(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}
- public static GossipTimestampFilter constructor_read(byte[] ser) {
- long ret = bindings.GossipTimestampFilter_read(ser);
+ public GossipTimestampFilter clone() {
+ long ret = bindings.GossipTimestampFilter_clone(this.ptr);
GossipTimestampFilter ret_hu_conv = new GossipTimestampFilter(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ public static Result_GossipTimestampFilterDecodeErrorZ constructor_read(byte[] ser) {
+ long ret = bindings.GossipTimestampFilter_read(ser);
+ Result_GossipTimestampFilterDecodeErrorZ ret_hu_conv = Result_GossipTimestampFilterDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}