We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 674acdd commit 58cdc16Copy full SHA for 58cdc16
src/AudioTools/StreamCopy.h
@@ -82,10 +82,12 @@ class StreamCopyT {
82
LOGI("buffer_size=%d",buffer_size);
83
}
84
85
+ /// Provides a pointer to the copy source. Can be used to check if the source is defined.
86
Stream *getFrom(){
87
return from;
88
89
90
+ /// Provides a pointer to the copy target. Can be used to check if the target is defined.
91
Print *getTo() {
92
return to;
93
@@ -375,10 +377,6 @@ class StreamCopy : public StreamCopyT<uint8_t> {
375
377
return StreamCopyT<uint8_t>::copy();
376
378
379
- /// available bytes of the data source
- int available() {
380
- return from == nullptr ? 0 : from->available();
381
- }
382
};
383
384
} // Namespace
0 commit comments