MCPcopy Create free account
hub / github.com/andysworkshop/stm32plus / available

Method available

lib/src/device/BlockDeviceInputStream.cpp:162–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 */
161
162 bool BlockDeviceInputStream::available() {
163
164 // data is available if we're not at the last block
165 // or the index in the block is less than the end
166
167 return _blockIndex<_device.getTotalBlocksOnDevice() ||
168 _indexInBlock<_device.getBlockSizeInBytes();
169 }
170
171
172 /**

Callers

nothing calls this directly

Calls 2

getBlockSizeInBytesMethod · 0.45

Tested by

no test coverage detected