diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-02-29 01:42:01 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-03-06 18:10:44 +0200 |
commit | 7f2da874cdacf2870c7a55cd1bdf34a01b01787d (patch) | |
tree | ee497d48be18cfee4a9cf9d4d9c6d4a8d7cfb67f /test/media_device/meson.build | |
parent | 8a1f0321dc031a34e5fd19bfeefd8e95f9a6b683 (diff) |
libcamera: byte_stream_buffer: Add zero-copy read() variant
Add a read() function to ByteStreamBuffer that returns a pointer to the
data instead of copying it. Overflow check is still handled by the
class, but the caller must check the returned pointer explicitly.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/media_device/meson.build')
0 files changed, 0 insertions, 0 deletions