<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSPreallocateResult",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(cs)FSPreallocateResult"
  },
  "title" : "FSPreallocateResult"
}
-->

# FSPreallocateResult

The result of a preallocate call.

```
class FSPreallocateResult
```

## Overview

Use this type in your implementation of  [`preallocateSpace(for:at:length:flags:context:replyHandler:)`](/documentation/FSKit/FSVolume/PreallocateHandler/preallocateSpace(for:at:length:flags:context:replyHandler:))

## Topics

### Creating a preallocate result

[`init?(bytesAllocated: Int, itemAttributes: FSItem.Attributes, freeSpace: FSFreeSpace?)`](/documentation/FSKit/FSPreallocateResult/init(bytesAllocated:itemAttributes:freeSpace:))

Creates a result for a preallocate operation.

[`class Attributes`](/documentation/FSKit/FSItem/Attributes)

Attributes of an item, such as size, creation and modification times, and user and group identifiers.

[`class FSFreeSpace`](/documentation/FSKit/FSFreeSpace)

A free space object that pairs free space values with atomic sequence numbers.

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

### Inherited By

[`FSPreallocateKOIOResult`](/documentation/FSKit/FSPreallocateKOIOResult)

### Inherits From

[`FSVolumeHandlerResult`](/documentation/FSKit/FSVolumeHandlerResult)

---

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)