Move IOStream to GpCommon

This commit is contained in:
elasota
2020-09-12 13:32:53 -04:00
parent 480a4b6098
commit f07137b52d
57 changed files with 483 additions and 477 deletions

View File

@@ -1,5 +1,5 @@
#include "BinHex4.h"
#include "IOStream.h"
#include "GpIOStream.h"
#include <string.h>
#include <vector>
@@ -59,7 +59,7 @@ namespace
namespace PortabilityLayer
{
MacFileMem *BinHex4::LoadHQX(IOStream *stream)
MacFileMem *BinHex4::LoadHQX(GpIOStream *stream)
{
const uint8_t errCodeChar = 64;
@@ -112,10 +112,10 @@ namespace PortabilityLayer
if (stream->IsSeekable())
{
UFilePos_t filePos = stream->Tell();
GpUFilePos_t filePos = stream->Tell();
if (stream->SeekEnd(0))
{
UFilePos_t endPos = stream->Tell();
GpUFilePos_t endPos = stream->Tell();
if (!stream->SeekStart(filePos))
return nullptr;