StreamJoin is used to join two Stream in one.
Some times you need to add some bytes in from of a Stream or File and you need to send this Stream to the internet.
#include <StreamJoin.h>
Create a StreamJoin with or without two streams.
StreamJoin join;
StreamJoin join(&initial, &final);
Insert the two streams to join.
join.begin(&initial, &final);
Dump all the bytes from the StreamJoin on the Stream.
join.dump(&Serial);
The available, read, peek methods works as a joined.
int a = join.available();
int r = join.read();
int p = join.peek();
Do you like this library? Please star this project on GitHub!