| 13 | #include "MultiStream.h" |
| 14 | |
| 15 | uint16_t MultiStream::readMemoryBlock(char* data, int bufSize) |
| 16 | { |
| 17 | if(stream && stream->isFinished()) { |
| 18 | stream.reset(); |
| 19 | } |
| 20 | |
| 21 | if(!stream) { |
| 22 | stream.reset(getNextStream()); |
| 23 | if(!stream) { |
| 24 | finished = true; |
| 25 | return 0; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | return stream->readMemoryBlock(data, bufSize); |
| 30 | } |
| 31 | |
| 32 | bool MultiStream::seek(int len) |
| 33 | { |