Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 853 Bytes

README.md

File metadata and controls

54 lines (34 loc) · 853 Bytes

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!