Slice.
More...
#include <slice.h>
template<class T>
class roc::core::Slice< T >
Slice.
Definition at line 23 of file slice.h.
◆ Slice() [1/3]
Construct empty slice.
Definition at line 26 of file slice.h.
◆ Slice() [2/3]
Construct slice pointing to a buffer.
Definition at line 33 of file slice.h.
◆ Slice() [3/3]
Construct slice pointing to a part of a buffer.
Definition at line 45 of file slice.h.
◆ capacity()
Get maximum possible number of elements in slice.
Definition at line 74 of file slice.h.
◆ data()
Get slice data.
Definition at line 61 of file slice.h.
◆ operator const struct unspecified_bool *()
Convert to bool.
- Returns
- true if the slice is attached to buffer, even if it has zero length.
Definition at line 122 of file slice.h.
◆ print()
Print slice to stderr.
Definition at line 111 of file slice.h.
◆ range()
Construct a slice pointing to a part of this slice.
Definition at line 93 of file slice.h.
◆ resize()
Change slice size, up to the available capacity.
Definition at line 83 of file slice.h.
◆ size()
Get number of elements in slice.
Definition at line 69 of file slice.h.
The documentation for this class was generated from the following file: