@Override
  protected void prepareBuffer() {
    super.prepareBuffer();
    bufferToSend.writeInt(numberOfLogfiles);
    for (LogInfo logInfo : logInfos) {
      logInfo.writeTo(bufferToSend);
    }
    Utils.serializeString(bufferToSend, snapshotId, Charset.defaultCharset());
  }
Write the response to the buffer
ambry-protocol/src/main/java/com/github/ambry/protocol/FileCopyGetMetaDataResponse.java