phyphox BLE
Plot your Arduino's data in the phyphox app and control the board from the phone
Loading...
Searching...
No Matches
phyphox::WindowSink Class Reference

Passes through only the bytes inside [skip, skip + capacity) of what is written to it, into a caller-provided buffer. More...

#include <Sink.h>

Inheritance diagram for phyphox::WindowSink:

Public Member Functions

 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)
 
- Public Member Functions inherited from phyphox::Sink
virtual ~Sink ()
 
void write (const char *text)
 
void write (char c)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WindowSink()

phyphox::WindowSink::WindowSink ( uint8_t *  out,
size_t  capacity,
size_t  skip 
)
inline

Member Function Documentation

◆ 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

Implements phyphox::Sink.

◆ write() [4/4]

virtual void phyphox::Sink::write ( const uint8_t *  data,
size_t  len 
)
virtual

Implements phyphox::Sink.


The documentation for this class was generated from the following file: