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

# GetBufferWithID

## Declaration

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

## Parameters

- `bufferID`: The buffer identifier of the buffer in the queue.

## Return Value

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

## See Also

### Working with video buffers

- [GetBufferCount](videodriverkit/iouservideostream/getbuffercount.md)
- [GetBufferList](videodriverkit/iouservideostream/getbufferlist.md)
- [addBuffer](videodriverkit/iouservideostream/addbuffer.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)
