---
title: "writeBuffer(_:exactLength:)"
framework: virtualization
role: symbol
role_heading: Instance Method
path: "virtualization/vzvirtioqueueelement/writebuffer(_:exactlength:)"
---

# writeBuffer(_:exactLength:)

Writes to the memory represented by the pointer to the buffer you provide to the write buffers.

## Declaration

```swift
func writeBuffer(_ buffer: UnsafeMutableRawPointer, exactLength: Int) throws
```

## Parameters

- `buffer`: A pointer to the memory containing the data to write to the write buffers.
- `exactLength`: The number of bytes the framework should write to the write buffers.
