<!--
{
  "availability" : [
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSMetadataRange/init(offset:segmentLength:segmentCount:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(cs)FSMetadataRange(im)initWithOffset:segmentLength:segmentCount:"
  },
  "title" : "init(offset:segmentLength:segmentCount:)"
}
-->

# init(offset:segmentLength:segmentCount:)

Initializes a metadata range with the given properties.

```
init(offset startOffset: off_t, segmentLength: UInt64, segmentCount: UInt64)
```

## Parameters

`startOffset`

The start offset of the range in bytes. Ensure this value is a multiple of the corresponding resource’s [`blockSize`](/documentation/FSKit/FSBlockDeviceResource/blockSize).

`segmentLength`

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

`segmentCount`

The number of segments in the range.

---

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)