MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / readData

Method readData

Cutelyst/testengine.cpp:96–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96qint64 SequentialBuffer::readData(char *data, qint64 maxlen)
97{
98 QByteArray mid = buf->mid(pos(), maxlen);
99 memcpy(data, mid.data(), mid.size());
100 // Sequential devices consume the body
101 buf->remove(0, mid.size());
102 return mid.size();
103}
104
105qint64 SequentialBuffer::writeData(const char *data, qint64 len)
106{

Callers

nothing calls this directly

Calls 3

dataMethod · 0.80
removeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected