@@ -88,12 +88,12 @@ class StreamCopyT {
88
88
return to;
89
89
}
90
90
91
- // / copies the data from the source to the destination - the result is in bytes
91
+ // / copies the data from the source to the destination and returns the processed number of bytes
92
92
inline size_t copy () {
93
93
return copyBytes (buffer_size);
94
94
}
95
95
96
- // / copies the inicated number of bytes from the source to the destination - the result is in bytes
96
+ // / copies the inicated number of bytes from the source to the destination and returns the processed number of bytes
97
97
inline size_t copyBytes (size_t bytes){
98
98
LOGD (" copy %d bytes %s" , (int ) bytes, log_name);
99
99
if (!active) return 0 ;
@@ -198,7 +198,7 @@ class StreamCopyT {
198
198
delay_on_no_data = delayMs;
199
199
}
200
200
201
- // / Copies pages * buffersize samples
201
+ // / Copies pages * buffersize samples: returns the processed number of bytes
202
202
size_t copyN (size_t pages){
203
203
if (!active) return 0 ;
204
204
size_t total=0 ;
@@ -215,7 +215,7 @@ class StreamCopyT {
215
215
return copyN (pages);
216
216
}
217
217
218
- // / copies all data - returns true if we copied anything
218
+ // / copies all data - returns the number of processed bytes
219
219
size_t copyAll (int retryCount=5 , int retryWaitMs=200 ){
220
220
TRACED ();
221
221
if (!active) return 0 ;
@@ -465,7 +465,7 @@ class StreamCopy : public StreamCopyT<uint8_t> {
465
465
TRACED ();
466
466
}
467
467
468
- // / copies a buffer length of data and applies the converter
468
+ // / copies the data from the source to the destination and applies the converter - the result is the processed number of bytes
469
469
size_t copy (BaseConverter &converter) {
470
470
size_t result = available ();
471
471
size_t delayCount = 0 ;
@@ -495,7 +495,7 @@ class StreamCopy : public StreamCopyT<uint8_t> {
495
495
return result;
496
496
}
497
497
498
- // / Copies all bytes from the input to the output
498
+ // / copies the data from the source to the destination and returns the processed number of bytes
499
499
size_t copy () {
500
500
return StreamCopyT<uint8_t >::copy ();
501
501
}
0 commit comments