| 72 | */ |
| 73 | |
| 74 | int16_t LzgDecompressionStream::read() { |
| 75 | |
| 76 | uint8_t nextByte; |
| 77 | |
| 78 | // check for end of stream |
| 79 | |
| 80 | if(_historyCopyDataAvailable==0 && _compressedDataAvailable==0) |
| 81 | return E_END_OF_STREAM; |
| 82 | |
| 83 | // return the next byte |
| 84 | |
| 85 | if(readNextUncompressedByte(nextByte)) |
| 86 | return nextByte; |
| 87 | |
| 88 | return false; |
| 89 | } |
| 90 | |
| 91 | |
| 92 | bool LzgDecompressionStream::read(void *buffer,uint32_t size,uint32_t& actuallyRead) { |
no outgoing calls
no test coverage detected