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

Method read

lib/src/stream/LzgDecompressionInputStream.cpp:74–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers 2

nextByteFromStreamMethod · 0.45
readWriteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected