File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/clp/streaming_compression/lzma Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ auto Compressor::open(FileWriter& file_writer) -> void {
26
26
m_compressed_stream_block_buffer.size ()
27
27
))
28
28
{
29
- throw OperationFailed (ErrorCode_NoMem , __FILENAME__, __LINE__);
29
+ throw OperationFailed (ErrorCode_Failure , __FILENAME__, __LINE__);
30
30
}
31
31
m_compressed_stream_file_writer = &file_writer;
32
32
m_uncompressed_stream_pos = 0 ;
@@ -38,7 +38,7 @@ auto Compressor::close() -> void {
38
38
}
39
39
40
40
if (m_lzma_stream.avail_in () > 0 ) {
41
- throw OperationFailed (ErrorCode_Corrupt , __FILENAME__, __LINE__);
41
+ throw OperationFailed (ErrorCode_Failure , __FILENAME__, __LINE__);
42
42
}
43
43
44
44
flush_lzma (LZMA_FINISH);
@@ -153,7 +153,7 @@ auto Compressor::flush_stream_output_block_buffer() -> void {
153
153
m_compressed_stream_block_buffer.size ()
154
154
))
155
155
{
156
- throw OperationFailed (ErrorCode_NoMem , __FILENAME__, __LINE__);
156
+ throw OperationFailed (ErrorCode_Failure , __FILENAME__, __LINE__);
157
157
}
158
158
}
159
159
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ namespace {
35
35
constexpr string_view cCompressedFilePath{" test_streaming_compressed_file.bin" };
36
36
constexpr size_t cBufferSize{128L * 1024 * 1024 }; // 128MB
37
37
constexpr auto cCompressionChunkSizes = std::to_array<size_t >(
38
- {0 , // no-op
38
+ {0 ,
39
39
cBufferSize / 100 ,
40
40
cBufferSize / 50 ,
41
41
cBufferSize / 25 ,
You can’t perform that action at this time.
0 commit comments