2020-10-11 19:50:03 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
class GpIOStream;
|
2021-05-11 21:27:40 -04:00
|
|
|
struct IGpAllocator;
|
2020-10-11 19:50:03 -04:00
|
|
|
|
|
|
|
|
namespace PortabilityLayer
|
|
|
|
|
{
|
|
|
|
|
class MacFileMem;
|
2021-05-07 02:16:25 -04:00
|
|
|
struct MacFileInfo;
|
2020-10-11 19:50:03 -04:00
|
|
|
|
|
|
|
|
namespace MacBinary2
|
|
|
|
|
{
|
2021-05-07 02:16:25 -04:00
|
|
|
static const int kHeaderSize = 128;
|
|
|
|
|
|
|
|
|
|
void SerializeHeader(unsigned char *headerBytes, const MacFileInfo &macFileInfo);
|
|
|
|
|
|
2020-10-11 19:50:03 -04:00
|
|
|
void WriteBin(const MacFileMem *file, GpIOStream *stream);
|
2021-05-11 21:27:40 -04:00
|
|
|
MacFileMem *ReadBin(GpIOStream *stream, IGpAllocator *alloc);
|
2020-10-11 19:50:03 -04:00
|
|
|
};
|
|
|
|
|
}
|