---
title: "peekIntoReadBuffers(withExactLength:)"
framework: virtualization
role: symbol
role_heading: Instance Method
path: "virtualization/vzvirtioqueueelement/peekintoreadbuffers(withexactlength:)"
---

# peekIntoReadBuffers(withExactLength:)

Peeks into the read buffers and copy exactLength bytes from the read buffer into the data object it returns.

## Declaration

```swift
func peekIntoReadBuffers(withExactLength exactLength: Int) throws -> Data
```

## Parameters

- `exactLength`: Number of bytes to copy from the read buffers.

## Return Value

Return Value An NSData object filled with the memory that the framework copied, or nil if the peek failed.

## Discussion

Discussion This method allows you to peek into the read buffers without consuming any of the memory, readBuffersAvailableByteCount does not change after this call.
