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

# GetBufferWithID

```
OSSharedPtr<IOUserVideoBuffer> GetBufferWithID(uint32_t bufferID);
```

## Parameters

`bufferID`

The buffer identifier of the buffer in the queue.

## Return Value

The buffer,
or `NULL` if the buffer identifier was invalid for this stream.

---

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)