MCPcopy Create free account
hub / github.com/SmingHub/Sming / readMemoryBlock

Method readMemoryBlock

Sming/Components/Storage/src/PartitionStream.cpp:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace Storage
15{
16uint16_t PartitionStream::readMemoryBlock(char* data, int bufSize)
17{
18 int len = std::min(bufSize, available());
19 return partition.read(startOffset + readPos, data, len) ? len : 0;
20}
21
22int PartitionStream::seekFrom(int offset, SeekOrigin origin)
23{

Callers

nothing calls this directly

Calls 2

minFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected