peekIntoReadBuffers(withExactLength:)
Peeks into the read buffers and copy exactLength bytes from the read buffer into the data object it returns.
Declaration
func peekIntoReadBuffers(withExactLength exactLength: Int) throws -> DataParameters
- exactLength:
Number of bytes to copy from the read buffers.
Return Value
An NSData object filled with the memory that the framework copied, or nil if the peek failed.
Discussion
This method allows you to peek into the read buffers without consuming any of the memory, readBuffersAvailableByteCount does not change after this call.