---
title: "CFWriteStreamCanAcceptBytes(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfwritestreamcanacceptbytes(_:)"
---

# CFWriteStreamCanAcceptBytes(_:)

Returns whether a writable stream can accept new data without blocking.

## Declaration

```swift
func CFWriteStreamCanAcceptBytes(_ stream: CFWriteStream!) -> Bool
```

## Parameters

- `stream`: The stream to examine.

## Return Value

Return Value true if data can be written to stream without blocking, false otherwise. If stream cannot tell if data can be written without actually trying to write the data, this function returns true.

## See Also

### Examining Stream Properties

- [CFWriteStreamCopyProperty(_:_:)](corefoundation/cfwritestreamcopyproperty(_:_:).md)
- [CFWriteStreamCopyError(_:)](corefoundation/cfwritestreamcopyerror(_:).md)
- [CFWriteStreamGetError(_:)](corefoundation/cfwritestreamgeterror(_:).md)
- [CFWriteStreamGetStatus(_:)](corefoundation/cfwritestreamgetstatus(_:).md)
