---
title: "init(offset:segmentLength:segmentCount:)"
framework: fskit
role: symbol
role_heading: Initializer
path: "fskit/fsmetadatarange/init(offset:segmentlength:segmentcount:)"
---

# init(offset:segmentLength:segmentCount:)

Initializes a metadata range with the given properties.

## Declaration

```swift
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 doc://FSKit/documentation/FSKit/FSBlockDeviceResource/blockSize.
- `segmentLength`: The segment length in bytes. Ensure this value is a multiple of the corresponding resource’s doc://FSKit/documentation/FSKit/FSBlockDeviceResource/blockSize.
- `segmentCount`: The number of segments in the range.
