---
title: addBuffer
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideostream/addbuffer
---

# addBuffer

Add a buffer to a video stream.

## Declaration

```occ
kern_return_t addBuffer(IOUserVideoBuffer *buffer);
```

## Discussion

Discussion Adds an IOUserVideoBuffer to an IOUserVideoStream. It will be added to the end of the buffer array, so the buffer ID of existing buffers will not change.

## See Also

### Working with video buffers

- [GetBufferCount](videodriverkit/iouservideostream/getbuffercount.md)
- [GetBufferList](videodriverkit/iouservideostream/getbufferlist.md)
- [GetBufferWithID](videodriverkit/iouservideostream/getbufferwithid.md)
- [addBuffers](videodriverkit/iouservideostream/addbuffers.md)
- [enqueueOutputBuffer](videodriverkit/iouservideostream/enqueueoutputbuffer.md)
- [IOUserVideoBuffer](videodriverkit/iouservideobuffer.md)
- [removeAllBuffers](videodriverkit/iouservideostream/removeallbuffers.md)
- [SendOutputBufferNotification](videodriverkit/iouservideostream/sendoutputbuffernotification.md)
