Helps to split up a big memory array into smaller slices. There are no additinal heap allocations! Example: if we have an array with 9 entries (1,2,3,4,5,6,7,8,9): slices(5) gives 2. slice(5,0) returns size 5 with 1,2,3,4,5 and slice(5,1) returns size 4 with 6,7,8,9!
More...
#include <Slice.h>
template<class T>
class audio_tools::Slice< T >
Helps to split up a big memory array into smaller slices. There are no additinal heap allocations! Example: if we have an array with 9 entries (1,2,3,4,5,6,7,8,9): slices(5) gives 2. slice(5,0) returns size 5 with 1,2,3,4,5 and slice(5,1) returns size 4 with 6,7,8,9!
- Author
- Phil Schatzmann
◆ Slice()
◆ data()
◆ operator bool()
Returns true if we contain any valid data.
◆ size()
Returns the (result) data size is number of entries.
◆ slice()
Returns the slice at the indicated index for the indicated slize size;.
◆ slices()
Returns the number of slices of the indicated size.
◆ len
◆ start
The documentation for this class was generated from the following file:
- src/AudioTools/CoreAudio/AudioBasic/Collections/Slice.h