<!--
{
  "availability" : [
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSMetadataRange/segmentLength",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(cs)FSMetadataRange(py)segmentLength"
  },
  "title" : "segmentLength"
}
-->

# segmentLength

The segment length in bytes.

```
var segmentLength: UInt64 { get }
```

## Discussion

Ensure this value is a multiple of the corresponding resource’s [`blockSize`](/documentation/FSKit/FSBlockDeviceResource/blockSize).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)