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

# FSMutableFileDataBuffer

A wrapper object for a data buffer.

```
class FSMutableFileDataBuffer
```

## Overview

This object provides a “zero-copy” buffer, for use when reading data from files.
By not requiring additional buffer copying, this object reduces the extension’s memory footprint and improves performance.
The `FSMutableFileDataBuffer` behaves similarly to a `uio` in the kernel.

## Topics

### Accessing buffer properties

[`withUnsafeMutableBytes(_:)`](/documentation/FSKit/FSMutableFileDataBuffer/withUnsafeMutableBytes(_:))

Performs the given closure with an unsafe pointer to the underlying bytes of the data buffer.

[`mutableBytes`](/documentation/FSKit/FSMutableFileDataBuffer/mutableBytes)

The byte data.

[`length`](/documentation/FSKit/FSMutableFileDataBuffer/length)

The data length of the buffer.



---

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)