readHeader method

void readHeader()

Implementation

void readHeader() {
  if (readTag() == SerializationTag.kVersionHeader) {
    _version = reader.getVarint();
    if (_version > SharedSerialization.latestVersion) {
      throw UnsupportedError(
          "Unable to deserialize cloned data due to invalid or unsupported version.");
    }
  }
}