Ardour
9.0-pre0-582-g084a23a80d
|
Utilities for initializing, copying, moving, etc. data. More...
#include <type_utils.h>
Static Public Member Functions | |
static void | zero_fill (T *buffer, samplecnt_t samples) |
static void | copy (T const *source, T *destination, samplecnt_t samples) |
static void | move (T const *source, T *destination, samplecnt_t samples) |
Private Types | |
typedef std::bool_constant< std::is_floating_point< T >::value||std::is_signed< T >::value > | zero_fillable |
Additional Inherited Members | |
Static Private Member Functions inherited from AudioGrapher::TypeUtilsBase | |
template<typename T , bool b> | |
static void | do_zero_fill (T *buffer, samplecnt_t samples, const std::bool_constant< b > &) |
template<typename T > | |
static void | do_zero_fill (T *buffer, samplecnt_t samples, const std::true_type &) |
Utilities for initializing, copying, moving, etc. data.
Definition at line 30 of file type_utils.h.
|
private |
Definition at line 35 of file type_utils.h.
|
inlinestatic |
Copies samples frames of data from source to destination The source and destination may NOT overlap.
RT safe
Definition at line 49 of file type_utils.h.
|
inlinestatic |
Moves samples frames of data from source to destination The source and destination may overlap in any way.
RT safe
Definition at line 56 of file type_utils.h.
|
inlinestatic |
Fill buffer with a zero value The value used for filling is either 0 or the value of T() if T is not a floating point or signed integer type
RT safe
Definition at line 42 of file type_utils.h.