Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::AsyncBufferView Struct Reference

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
 

Detailed Description

A Span of bytes memory to be read or written by async streams.

Constructor & Destructor Documentation

◆ AsyncBufferView()

template<typename T >
SC::AsyncBufferView::AsyncBufferView ( T && t)
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.


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