Shipwright/libultraship/libultraship/Blob.cpp
M4xw d24c8453db git subrepo clone https://github.com/HarbourMasters/libultraship.git
subrepo:
  subdir:   "libultraship"
  merged:   "a484cda98"
upstream:
  origin:   "https://github.com/HarbourMasters/libultraship.git"
  branch:   "main"
  commit:   "a484cda98"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
2022-03-22 02:52:44 +01:00

18 lines
400 B
C++

#include "Blob.h"
namespace Ship
{
void BlobV0::ParseFileBinary(BinaryReader* reader, Resource* res)
{
Blob* blob = (Blob*)res;
ResourceFile::ParseFileBinary(reader, blob);
uint32_t dataSize = reader->ReadUInt32();
blob->data.reserve(dataSize);
for (uint32_t i = 0; i < dataSize; i++)
blob->data.push_back(reader->ReadUByte());
}
}