Further compression and png work.
This commit is contained in:
parent
318b481ccc
commit
9c8faa534b
34 changed files with 1164 additions and 203 deletions
28
src/core/streams/OutputBitStream.cpp
Normal file
28
src/core/streams/OutputBitStream.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "OutputBitStream.h"
|
||||
|
||||
OutputBitStream::OutputBitStream(std::basic_ostream<char>* stream)
|
||||
: BitStream(),
|
||||
mStream(stream)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool OutputBitStream::isFinished() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
std::vector<unsigned char> OutputBitStream::peekNextNBytes(unsigned n) const
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
std::optional<unsigned char> OutputBitStream::readNextByte()
|
||||
{
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
void OutputBitStream::writeByte(unsigned char data)
|
||||
{
|
||||
(*mStream) << data;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue