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