class V4L2::BufferQueue
- V4L2::BufferQueue
- Reference
- Object
Included Modules
- Enumerable(V4L2::Buffer)
- Indexable(V4L2::Buffer)
Defined in:
v4l2/buffer_queue.crConstructors
Instance Method Summary
- #count : UInt32
- #dequeue(&block : Buffer -> ) : Bool
-
#each(&block : Buffer -> )
Must yield this collection's elements to the block.
- #enqueue(buffer : Buffer)
- #memory : Buffer::Memory
- #query(index : UInt32) : Buffer
-
#size : UInt32
Returns the number of elements in the collection.
- #type : Buffer::Type
-
#unsafe_fetch(index : Int) : Buffer
Returns the element at the given index, without doing any bounds check.
Constructor Detail
Instance Method Detail
Description copied from module Enumerable(V4L2::Buffer)
Must yield this collection's elements to the block.
def size : UInt32
#
Description copied from module Enumerable(V4L2::Buffer)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4
Description copied from module Indexable(V4L2::Buffer)
Returns the element at the given index, without doing any bounds check.
Indexable
makes sure to invoke this method with index in 0...size
,
so converting negative indices to positive ones is not needed here.
Clients never invoke this method directly. Instead, they access
elements with #[](index)
and #[]?(index)
.
This method should only be directly invoked if you are absolutely sure the index is in bounds, to avoid a bounds check for a small boost of performance.