code: public void loadState(byte[] data) {
          byte_vector buffer = Vectors.bytes2byte_vector(data);
          bdecode_node n = new bdecode_node();
          error_code ec = new error_code();
          int ret = bdecode_node.bdecode(buffer, n, ec);
  
          if (ret == 0) {
              s.load_state(n);
              buffer.clear(); // prevents GC
          } else {
              LOG.error("failed to decode bencoded data: " + ec.message());
          }
      }
docs: Same as calling {@link #loadState(byte[], save_state_flags_t)} with all
  save state flags.