<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZVirtioQueueElement/write(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZVirtioQueueElement(im)writeData:error:"
  },
  "title" : "write(_:)"
}
-->

# write(_:)

Writes the memory represented by the data object you provide into the write buffers.

```
func write(_ data: Data) throws
```

## Parameters

`data`

The <doc://com.apple.documentation/documentation/Foundation/NSData> object that represents the memory the framework uses to the write buffers.

---

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)