mirror of
https://github.com/sfall-team/int2ssl.git
synced 2026-07-27 16:52:42 -07:00
39 lines
543 B
C++
39 lines
543 B
C++
#include "CArchive.h"
|
|
|
|
#include <iostream>
|
|
|
|
CArchive::CArchive(CFile* file, unsigned int mode)
|
|
{
|
|
_file = file;
|
|
}
|
|
|
|
void CArchive::Flush()
|
|
{
|
|
}
|
|
|
|
CFile* CArchive::GetFile()
|
|
{
|
|
return _file;
|
|
}
|
|
|
|
void CArchive::WriteString(const char * value)
|
|
{
|
|
_file->_ostream << value;
|
|
}
|
|
|
|
void CArchive::WriteString(std::string value)
|
|
{
|
|
_file->_ostream << value;
|
|
}
|
|
|
|
uint32_t CArchive::Read(char *buffer, uint32_t size)
|
|
{
|
|
_file->_istream.read(buffer, size);
|
|
return size;
|
|
}
|
|
|
|
std::ofstream* CArchive::ofstream()
|
|
{
|
|
return &_file->_ostream;
|
|
}
|