<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/DispatchIO/StreamType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "s:So14OS_dispatch_ioC8DispatchE10StreamTypeO"
  },
  "title" : "DispatchIO.StreamType"
}
-->

# DispatchIO.StreamType

The semantics for accessing the contents of a file descriptor.

```
enum StreamType
```

## Topics

### Stream Types

[`DispatchIO.StreamType.stream`](/documentation/Dispatch/DispatchIO/StreamType/stream)

Access content sequentially, in a stream.

[`DispatchIO.StreamType.random`](/documentation/Dispatch/DispatchIO/StreamType/random)

Access content randomly.

### Initializing the Type

[`DISPATCH_IO_RANDOM`](/documentation/Dispatch/DISPATCH_IO_RANDOM)

[`DISPATCH_IO_STREAM`](/documentation/Dispatch/DISPATCH_IO_STREAM)

### Expressing the Type

### Hashing Values

### Comparing Types



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)