+ @Override public boolean equals(Object o) {
+ if (!(o instanceof RouteHintHop)) return false;
+ return this.eq((RouteHintHop)o);
+ }
+ /**
+ * Serialize the RouteHintHop object into a byte array which can be read by RouteHintHop_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.RouteHintHop_write(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+
+ /**
+ * Read a RouteHintHop from a byte array, created by RouteHintHop_write
+ */
+ public static Result_RouteHintHopDecodeErrorZ read(byte[] ser) {
+ long ret = bindings.RouteHintHop_read(ser);
+ Reference.reachabilityFence(ser);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_RouteHintHopDecodeErrorZ ret_hu_conv = Result_RouteHintHopDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+