11#define NOT_ENOUGH_MEMORY_MSG "Could not allocate enough memory: %d bytes"
118 if (
from ==
nullptr &&
to ==
nullptr)
return 0;
121 if (
bytes == 0)
return 0;
185 LOGI(
"StreamCopy::copy %s %u -> %u -> %u bytes - in %u hops",
log_name,
187 (
unsigned int)result, (
unsigned int)
delayCount);
212 for (
size_t j = 0;
j <
pages;
j++) {
233 if (
from ==
nullptr ||
to ==
nullptr)
return result;
258 if (
from !=
nullptr) {
265 LOGW(
"source not defined");
267 LOGD(
"available: %d", result);
377 LOGI(
"--> StreamCopy: ");
385 if (!
buffer || len == 0)
return 0;
386 LOGD(
"write: %d", (
int)len);
392 LOGD(
"write: %d -> %d", (
int)open, (
int)written);
407 LOGE(
"write %s to target has failed after %d attempts! (%ld bytes)",
#define LOGW(...)
Definition AudioLoggerIDF.h:29
#define TRACED()
Definition AudioLoggerIDF.h:31
#define LOGI(...)
Definition AudioLoggerIDF.h:28
#define LOGD(...)
Definition AudioLoggerIDF.h:27
#define LOGE(...)
Definition AudioLoggerIDF.h:30
#define NOT_ENOUGH_MEMORY_MSG
Definition StreamCopy.h:11
#define DEFAULT_BUFFER_SIZE
Definition avr.h:20