| 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 | /** |
nothing calls this directly
no test coverage detected