mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
LibCompress: Fix a typo in m_read_final_block
This commit is contained in:
parent
7d391e1397
commit
127f6ed6eb
2 changed files with 4 additions and 4 deletions
|
@ -270,10 +270,10 @@ ErrorOr<Bytes> DeflateDecompressor::read_some(Bytes bytes)
|
||||||
auto slice = bytes.slice(total_read);
|
auto slice = bytes.slice(total_read);
|
||||||
|
|
||||||
if (m_state == State::Idle) {
|
if (m_state == State::Idle) {
|
||||||
if (m_read_final_bock)
|
if (m_read_final_block)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
m_read_final_bock = TRY(m_input_stream->read_bit());
|
m_read_final_block = TRY(m_input_stream->read_bit());
|
||||||
auto const block_type = TRY(m_input_stream->read_bits(2));
|
auto const block_type = TRY(m_input_stream->read_bits(2));
|
||||||
|
|
||||||
if (block_type == 0b00) {
|
if (block_type == 0b00) {
|
||||||
|
@ -352,7 +352,7 @@ ErrorOr<Bytes> DeflateDecompressor::read_some(Bytes bytes)
|
||||||
return bytes.slice(0, total_read);
|
return bytes.slice(0, total_read);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DeflateDecompressor::is_eof() const { return m_state == State::Idle && m_read_final_bock; }
|
bool DeflateDecompressor::is_eof() const { return m_state == State::Idle && m_read_final_block; }
|
||||||
|
|
||||||
ErrorOr<size_t> DeflateDecompressor::write_some(ReadonlyBytes)
|
ErrorOr<size_t> DeflateDecompressor::write_some(ReadonlyBytes)
|
||||||
{
|
{
|
||||||
|
|
|
@ -108,7 +108,7 @@ private:
|
||||||
|
|
||||||
static constexpr u16 max_back_reference_length = 258;
|
static constexpr u16 max_back_reference_length = 258;
|
||||||
|
|
||||||
bool m_read_final_bock { false };
|
bool m_read_final_block { false };
|
||||||
|
|
||||||
State m_state { State::Idle };
|
State m_state { State::Idle };
|
||||||
union {
|
union {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue