@Override
    public void write(DataOutput stream) throws IOException {
      int skip = bytesToSkip(getOffset());
      for (int i = 0; i < skip; i++) {
        stream.writeByte(0);
      }
    }
@Override
    public void write(DataOutput stream)