Arduino DLNA Server
Loading...
Searching...
No Matches
NullPrint.h
Go to the documentation of this file.
1#include "Print.h"
2
3namespace tiny_dlna {
4
11class NullPrint : public Print {
12 size_t write(uint8_t ch) override { return 1; }
13 size_t write(const uint8_t* buffer, size_t size) override { return size; }
14};
15
16} // namespace tiny_dlna
Class with does not do any output: it can be used to determine the length of the output.
Definition: NullPrint.h:11
Definition: Allocator.h:6