---
title: "SSLGetBufferedReadSize(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sslgetbufferedreadsize(_:_:)"
---

# SSLGetBufferedReadSize(_:_:)

Determines how much data is available to be read.

## Declaration

```swift
func SSLGetBufferedReadSize(_ context: SSLContext, _ bufferSize: UnsafeMutablePointer<Int>) -> OSStatus
```

## Parameters

- `context`: An SSL session context reference.
- `bufferSize`: On return, the size of the data to be read.

## Return Value

Return Value A result code. See Secure Transport Result Codes.

## Discussion

Discussion This function determines how much data you can be guaranteed to obtain in a call to the SSLRead(_:_:_:_:) function. This function does not block or cause any low-level read operations to occur.
