---
title: initWithBuffers
framework: kernel
role: pseudoSymbol
path: kernel/iovideostream/1809391-initwithbuffers
---

# initWithBuffers

## Declaration

```occ
virtual bool initWithBuffers(
 OSArray *buffers,
 IOStreamMode mode = kIOStreamModeOutput,
 IOItemCount queueLength = 0,
 OSDictionary *properties = 0); 
```

## Parameters

- `buffers`: An array of IOStreamBuffer objects which will be the buffers for this stream.
- `mode`: The initial mode of the video stream, either output, input, or input/output.
- `queueLength`: The nuber of queue entries to reserve in the input and output queue. Zero means to make the queues big enough to accommodate all the buffers at once.
- `properties`: A dictionary of properties which will be set on the video stream.

## See Also

### Miscellaneous

- [getStreamMode](kernel/iovideostream/1809380-getstreammode.md)
- [setStreamMode](kernel/iovideostream/1809395-setstreammode.md)
- [startStream](kernel/iovideostream/1809402-startstream.md)
- [stopStream](kernel/iovideostream/1809407-stopstream.md)
- [suspendStream](kernel/iovideostream/1809411-suspendstream.md)
- [withBuffers](kernel/iovideostream/1809420-withbuffers.md)
