Core lib building

This commit is contained in:
jmsgrogan 2024-01-02 16:14:23 +00:00
parent 3ed195d7dd
commit 94fcc42aed
73 changed files with 625 additions and 661 deletions

View file

@ -1,6 +1,6 @@
#include "InputBitStream.h"
InputBitStream::InputBitStream(std::basic_istream<unsigned char>* stream)
InputBitStream::InputBitStream(InputStream<Byte>* stream)
: BitStream(),
mStream(stream)
{
@ -16,7 +16,7 @@ void InputBitStream::peekNextNBytes(size_t, VecBytes&) const
{
}
std::optional<Byte> InputBitStream::readNextByte()
Optional<Byte> InputBitStream::readNextByte()
{
if (mStream->good())
{
@ -24,7 +24,7 @@ std::optional<Byte> InputBitStream::readNextByte()
}
else
{
return std::nullopt;
return {};
}
}