---
title: "readBytes(intoBuffer:exactLength:)"
framework: virtualization
role: symbol
role_heading: Instance Method
path: "virtualization/vzvirtioqueueelement/readbytes(intobuffer:exactlength:)"
---

# readBytes(intoBuffer:exactLength:)

Reads the number of bytes you specify from the read buffers into the memory pointed to by the pointer to the buffer you provide.

## Declaration

```swift
func readBytes(intoBuffer buffer: UnsafeMutableRawPointer, exactLength: Int) throws
```

## Parameters

- `buffer`: Pointer to where the framework reads the read buffer’s memory to.
- `exactLength`: Number of bytes to read from the read buffers.
