code: public void write(DataOutput out) throws IOException {
      out.writeBoolean(corrupt);
      out.writeLong(offset);
      b.write(out);
      out.writeInt(locs.length);
      for (int i = 0; i < locs.length; i++) {
        locs[i].write(out);
      }
    }
docs: /////////////////////////////////////////