julesdg6 / StreamJoin

StreamJoin is used to join two Stream in one.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StreamJoin

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.

Reference

Include Library

#include <StreamJoin.h>

Method: StreamJoin

Create a StreamJoin with or without two streams.

StreamJoin join;
StreamJoin join(&initial, &final);

Method: begin

Insert the two streams to join.

join.begin(&initial, &final);

Method: dump

Dump all the bytes from the StreamJoin on the Stream.

join.dump(&Serial);

Method: Stream

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!

About

StreamJoin is used to join two Stream in one.

License:MIT License


Languages

Language:C++ 100.0%