public override int GetHashCode() { int hash = 1; if (FileNameHash != 0) { hash ^= FileNameHash.GetHashCode(); } if (PaddedFileSize != 0) { hash ^= PaddedFileSize.GetHashCode(); } if (UnpaddedFileSize != 0L) { hash ^= UnpaddedFileSize.GetHashCode(); } if (FileOffset != 0L) { hash ^= FileOffset.GetHashCode(); } if (sHAHash_ != null) { hash ^= SHAHash.GetHashCode(); } if (aESKey_ != null) { hash ^= AESKey.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(FileHeader other) { if (other == null) { return; } if (other.FileNameHash != 0) { FileNameHash = other.FileNameHash; } if (other.PaddedFileSize != 0) { PaddedFileSize = other.PaddedFileSize; } if (other.UnpaddedFileSize != 0L) { UnpaddedFileSize = other.UnpaddedFileSize; } if (other.FileOffset != 0L) { FileOffset = other.FileOffset; } if (other.sHAHash_ != null) { if (sHAHash_ == null) { SHAHash = new global::SOULS.BHD5.SHAHash(); } SHAHash.MergeFrom(other.SHAHash); } if (other.aESKey_ != null) { if (aESKey_ == null) { AESKey = new global::SOULS.BHD5.AESKey(); } AESKey.MergeFrom(other.AESKey); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }