Passes through only the bytes inside [skip, skip + capacity) of what is written to it, into a caller-provided buffer.
More...
#include <Sink.h>
|
| | WindowSink (uint8_t *out, size_t capacity, size_t skip) |
| |
| void | write (const uint8_t *data, size_t len) override |
| |
| size_t | produced () const |
| |
| bool | full () const |
| |
| virtual void | write (const uint8_t *data, size_t len)=0 |
| |
| void | write (const char *text) |
| |
| void | write (char c) |
| |
| virtual | ~Sink () |
| |
| void | write (const char *text) |
| |
| void | write (char c) |
| |
Passes through only the bytes inside [skip, skip + capacity) of what is written to it, into a caller-provided buffer.
This is how one packet of the transfer is produced from a part of the document without ever holding the part.
◆ WindowSink()
| phyphox::WindowSink::WindowSink |
( |
uint8_t * |
out, |
|
|
size_t |
capacity, |
|
|
size_t |
skip |
|
) |
| |
|
inline |
◆ full()
| bool phyphox::WindowSink::full |
( |
| ) |
const |
|
inline |
◆ produced()
| size_t phyphox::WindowSink::produced |
( |
| ) |
const |
|
inline |
◆ write() [1/4]
| void phyphox::Sink::write |
( |
char |
c | ) |
|
|
inline |
◆ write() [2/4]
| void phyphox::Sink::write |
( |
const char * |
text | ) |
|
◆ write() [3/4]
| void phyphox::WindowSink::write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
overridevirtual |
◆ write() [4/4]
| virtual void phyphox::Sink::write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following file: