A Span of bytes memory to be read or written by async streams. More...
#include <AsyncStreams.h>
Classes | |
| struct | ID |
Public Types | |
| enum class | Type { Empty , Writable , ReadOnly , Growable } |
Public Member Functions | |
| AsyncBufferView (Span< char > data) | |
| AsyncBufferView (Span< const char > data) | |
| template<typename T > | |
| AsyncBufferView (T &&t) | |
| Saves a copy (or a moved instance) of a String / Buffer (or anything that works with GrowableBuffer<T>) inside an AsyncBufferView in order to access its data later, as long as its size fits inside the inline storage. | |
| template<int N> | |
| AsyncBufferView (const char(&literal)[N]) | |
| Type | getType () const |
Friends | |
| struct | AsyncBuffersPool |
A Span of bytes memory to be read or written by async streams.
|
inline |
Saves a copy (or a moved instance) of a String / Buffer (or anything that works with GrowableBuffer<T>) inside an AsyncBufferView in order to access its data later, as long as its size fits inside the inline storage.
Destroying the AsyncBufferView will also destroy the copied / moved instance.