Made JsonWriterFile flush on destruct
This commit is contained in:
parent
121dd61e9a
commit
45da2a9b2d
@ -12,6 +12,11 @@ namespace base
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JsonWriterFile::~JsonWriterFile()
|
||||||
|
{
|
||||||
|
Flush();
|
||||||
|
}
|
||||||
|
|
||||||
FILE* JsonWriterFile::GetFp() const
|
FILE* JsonWriterFile::GetFp() const
|
||||||
{
|
{
|
||||||
return m_fp;
|
return m_fp;
|
||||||
|
@ -13,6 +13,7 @@ namespace base
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
JsonWriterFile(FILE* fp, char* buffer, std::size_t length);
|
JsonWriterFile(FILE* fp, char* buffer, std::size_t length);
|
||||||
|
~JsonWriterFile();
|
||||||
|
|
||||||
FILE* GetFp() const;
|
FILE* GetFp() const;
|
||||||
void Flush();
|
void Flush();
|
||||||
|
Loading…
Reference in New Issue
Block a user