---
title: "hash(into:)"
framework: System
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "system/stat/hash(into:)"
---

# hash(into:)

Hashes the meaningful file-metadata fields of a Stat struct.

## Declaration

```swift
func hash(into hasher: inout Hasher)
```

## Discussion

Discussion These are the same fields compared by ==, fed in the same order. Alignment padding and platform reserved/“spare” fields are not hashed.
