<!--
{
  "availability" : [
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSExtentPacker/packExtent(resource:type:logicalOffset:physicalOffset:length:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(cs)FSExtentPacker(im)packExtentWithResource:type:logicalOffset:physicalOffset:length:"
  },
  "title" : "packExtent(resource:type:logicalOffset:physicalOffset:length:)"
}
-->

# packExtent(resource:type:logicalOffset:physicalOffset:length:)

Packs a single extent to send to the kernel.

```
func packExtent(resource: FSBlockDeviceResource, type: FSExtentType, logicalOffset: off_t, physicalOffset: off_t, length: Int) -> Bool
```

## Parameters

`resource`

The resource on which to perform I/O.

`type`

The type of extent, indicating whether it contains valid data.

`logicalOffset`

The extent offset within the file, in bytes.

`physicalOffset`

The extent offset on disk, in bytes.

`length`

The extent length, in bytes. The maximal valid length is `UINT32_MAX`.

## Return Value

A Boolean value that indicates whether the packer can pack more extents.

---

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)