13
13
14
14
#include " ByteStream.h"
15
15
#include " NTFSCompression.h"
16
- #include " NTFSStream.h"
17
16
#include " Stream/StreamConcept.h"
18
17
#include " Stream/ByteStreamConcept.h"
18
+ #include " ByteStream.h"
19
19
#include " Utils/BufferView.h"
20
20
#include " VolumeReader.h"
21
21
@@ -25,7 +25,7 @@ using namespace Orc;
25
25
namespace {
26
26
27
27
std::unique_ptr<UncompressWofStream::WofStreamT>
28
- CreateWofStream (const std::shared_ptr<NTFSStream >& ntfsStream , WofAlgorithm algorithm, uint64_t uncompressedSize)
28
+ CreateWofStream (const std::shared_ptr<ByteStream >& rawStream , WofAlgorithm algorithm, uint64_t uncompressedSize)
29
29
{
30
30
std::error_code ec;
31
31
@@ -38,10 +38,10 @@ CreateWofStream(const std::shared_ptr<NTFSStream>& ntfsStream, WofAlgorithm algo
38
38
39
39
auto wofStream = std::make_unique<UncompressWofStream::WofStreamT>(
40
40
std::move (decompressor),
41
- ByteStreamConcept (ntfsStream ),
41
+ ByteStreamConcept (rawStream ),
42
42
0 ,
43
43
algorithm,
44
- ntfsStream ->GetSize (),
44
+ rawStream ->GetSize (),
45
45
uncompressedSize,
46
46
ec);
47
47
if (ec)
@@ -61,7 +61,7 @@ UncompressWofStream::UncompressWofStream()
61
61
: ChainingStream()
62
62
, m_buffer()
63
63
, m_wofStream()
64
- , m_ntfsStream ()
64
+ , m_rawStream ()
65
65
, m_uncompressedSize(0 )
66
66
, m_algorithm(WofAlgorithm::kUnknown )
67
67
{
@@ -108,23 +108,23 @@ HRESULT UncompressWofStream::Open(const std::shared_ptr<ByteStream>& pChained)
108
108
}
109
109
110
110
HRESULT UncompressWofStream::Open (
111
- const std::shared_ptr<NTFSStream >& ntfsStream ,
111
+ const std::shared_ptr<ByteStream >& rawStream ,
112
112
WofAlgorithm algorithm,
113
113
uint64_t uncompressedSize)
114
114
{
115
- HRESULT hr = Open (ntfsStream );
115
+ HRESULT hr = Open (rawStream );
116
116
if (FAILED (hr))
117
117
{
118
118
return hr;
119
119
}
120
120
121
- m_wofStream = CreateWofStream (ntfsStream , algorithm, uncompressedSize);
121
+ m_wofStream = CreateWofStream (rawStream , algorithm, uncompressedSize);
122
122
if (!m_wofStream)
123
123
{
124
124
return E_FAIL;
125
125
}
126
126
127
- m_ntfsStream = ntfsStream ;
127
+ m_rawStream = rawStream ;
128
128
m_algorithm = algorithm;
129
129
m_uncompressedSize = uncompressedSize;
130
130
return S_OK;
@@ -143,7 +143,7 @@ HRESULT UncompressWofStream::Read_(
143
143
144
144
if (!m_wofStream)
145
145
{
146
- m_wofStream = CreateWofStream (m_ntfsStream , m_algorithm, m_uncompressedSize);
146
+ m_wofStream = CreateWofStream (m_rawStream , m_algorithm, m_uncompressedSize);
147
147
if (!m_wofStream)
148
148
{
149
149
return E_FAIL;
@@ -189,7 +189,7 @@ HRESULT UncompressWofStream::SetFilePointer(
189
189
190
190
if (!m_wofStream)
191
191
{
192
- m_wofStream = CreateWofStream (m_ntfsStream , m_algorithm, m_uncompressedSize);
192
+ m_wofStream = CreateWofStream (m_rawStream , m_algorithm, m_uncompressedSize);
193
193
if (!m_wofStream)
194
194
{
195
195
return E_FAIL;
0 commit comments