+ /**
+ * Serialize the Scorer object into a byte array which can be read by Scorer_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.Scorer_write(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Read a Scorer from a byte array, created by Scorer_write
+ */
+ public static Result_ScorerDecodeErrorZ read(byte[] ser) {
+ long ret = bindings.Scorer_read(ser);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_ScorerDecodeErrorZ ret_hu_conv = Result_ScorerDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+