TinyRobotics
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MemoryStream Class Reference

Read-only memory stream for wrapping a buffer as an Arduino Stream. More...

#include <MemoryStream.h>

Inheritance diagram for MemoryStream:
Inheritance graph
[legend]
Collaboration diagram for MemoryStream:
Collaboration graph
[legend]

Public Member Functions

 MemoryStream (const uint8_t *d, size_t l)
 
int available () override
 
int read () override
 
int peek () override
 
void flush () override
 
size_t write (uint8_t) override
 
size_t readBytes (char *buf, size_t n)
 

Detailed Description

Read-only memory stream for wrapping a buffer as an Arduino Stream.

This class allows you to treat a memory buffer as an input Stream, enabling code that expects a Stream (such as parsers or message dispatchers) to operate directly on in-memory data. The stream is read-only: write() does nothing.


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