---
title: hasBytesAvailable
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/stream/event/hasbytesavailable
---

# hasBytesAvailable

The stream has bytes to be read.

## Declaration

```swift
static var hasBytesAvailable: Stream.Event { get }
```

## See Also

### Constants

- [openCompleted](foundation/stream/event/opencompleted.md)
- [hasSpaceAvailable](foundation/stream/event/hasspaceavailable.md)
- [errorOccurred](foundation/stream/event/erroroccurred.md)
- [endEncountered](foundation/stream/event/endencountered.md)
