Use IoUtilities::NativeFileStream in PasswordFile
* Allows to support UTF-8 characters in the path under Windows * Allows to open a file from existing file descriptor * Requires c++utilities to be compiled with USE_NATIVE_FILE_BUFFER to take effect.
This commit is contained in:
parent
ed872b0486
commit
f448e34cd8
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include <c++utilities/io/binaryreader.h>
|
||||
#include <c++utilities/io/binarywriter.h>
|
||||
#include <c++utilities/io/nativefilestream.h>
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
@ -51,7 +52,7 @@ private:
|
|||
std::unique_ptr<NodeEntry> m_rootEntry;
|
||||
std::string m_extendedHeader;
|
||||
std::string m_encryptedExtendedHeader;
|
||||
std::fstream m_file;
|
||||
IoUtilities::NativeFileStream m_file;
|
||||
IoUtilities::BinaryReader m_freader;
|
||||
IoUtilities::BinaryWriter m_fwriter;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue