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