File read buffer doesn't need to be preserved.

This commit is contained in:
Bartosz Taudul 2018-03-17 14:22:36 +01:00
parent 41d8ca0814
commit a4d46219df

View File

@ -54,6 +54,7 @@ private:
void ReadBig( void* ptr, size_t size ) void ReadBig( void* ptr, size_t size )
{ {
char m_lz4buf[LZ4Size];
auto dst = (char*)ptr; auto dst = (char*)ptr;
while( size > 0 ) while( size > 0 )
{ {
@ -81,7 +82,6 @@ private:
LZ4_streamDecode_t* m_stream; LZ4_streamDecode_t* m_stream;
FILE* m_file; FILE* m_file;
char m_buf[2][BufSize]; char m_buf[2][BufSize];
char m_lz4buf[LZ4Size];
size_t m_offset; size_t m_offset;
uint8_t m_active; uint8_t m_active;
}; };