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

Method readMemoryBlock

Sming/Core/Data/Stream/IFS/FileStream.cpp:86–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86uint16_t FileStream::readMemoryBlock(char* data, int bufSize)
87{
88 GET_FS(0)
89
90 assert(bufSize >= 0);
91 size_t startPos = pos;
92 size_t count = readBytes(data, bufSize);
93
94 // Move cursor back to start position
95 (void)fs->lseek(handle, startPos, SeekOrigin::Start);
96 pos = startPos;
97
98 return count;
99}
100
101size_t FileStream::write(const uint8_t* buffer, size_t size)
102{

Callers

nothing calls this directly

Calls 1

lseekMethod · 0.80

Tested by

no test coverage detected