<!--
{
  "availability" : [
    "DriverKit: 27.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoDriverKit",
  "identifier" : "/documentation/VideoDriverKit/IOUserVideoStream/addBuffer",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "VideoDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserVideoStream@F@addBuffer#*$@S@IOUserVideoBuffer#"
  },
  "title" : "addBuffer"
}
-->

# addBuffer

Add a buffer to a video stream.

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

## 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.

---

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)