---
title: "write(_:)"
framework: virtualization
role: symbol
role_heading: Instance Method
path: "virtualization/vzvirtioqueueelement/write(_:)"
---

# write(_:)

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

## Declaration

```swift
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.
