8template<
typename T,
int FRAMELEN=80>
10 static constexpr size_t LEN = FRAMELEN /
sizeof(T);
21 if (
buf.size == 0)
return nullptr;
23 for (
unsigned int i = 0; i < LEN - start; i++) {
dynamically allocated, but fixed-size buffer template
Definition buffer.h:18
pyWisp communication frame
Definition frameregistry.h:10
T unpack()
return unpacked value from Frame
Definition frameregistry.h:46
unpacking helper for data series sent from pywisp
Definition series.h:9
Buffer< T > * unpack(Frame &f)
call this with incoming frames until it returns a Buffer filled with the data sent over the wire.
Definition series.h:18
Buffer< T > buf
Buffer of data received. only valid after unpack returns non-null.
Definition series.h:12