Prusa MINI Firmware overview
|
Universal response class with internal buffer size by BUFFER_RESPONSE_SIZE. More...
Public Member Functions | |
BufferResponse () | |
int | printf (const char *format...) |
write string data to internal buffer More... | |
const uint8_t * | buffer () const |
return internal string buffer as array of bytes More... | |
int | length () const |
return length of internal string buffer More... | |
virtual Message_t | generator (const struct pbuf *input=nullptr) override |
Response generator, iterative returns file data. More... | |
Public Member Functions inherited from IResponse | |
IResponse (const IResponse &)=delete | |
IResponse () | |
Public Member Functions inherited from LwIPClass | |
virtual | ~LwIPClass () |
Public Attributes | |
const char * | response |
ConstHeader | ct_header |
bool | done |
Additional Inherited Members | |
Public Types inherited from IResponse | |
typedef std::unique_ptr< IResponse > | unique_ptr_t |
Static Public Member Functions inherited from LwIPClass | |
static void * | operator new (size_t size) |
static void | operator delete (void *ptr) |
Universal response class with internal buffer size by BUFFER_RESPONSE_SIZE.
BufferResponse::BufferResponse | ( | ) |
int BufferResponse::printf | ( | const char * | format... | ) |
write string data to internal buffer
int BufferResponse::length | ( | ) | const |
return length of internal string buffer
Response generator, iterative returns file data.
coroutine_fn returned BufferResponse data
arg | pointer to BufferResponse object, which must be application function, and must be deleted by this function |
Implements IResponse.
const char* BufferResponse::response |
ConstHeader BufferResponse::ct_header |
bool BufferResponse::done |