<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZVirtioQueueElement/readBytes(intoBuffer:exactLength:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZVirtioQueueElement(im)readBytesIntoBuffer:exactLength:error:"
  },
  "title" : "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.

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

---

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)