mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-01 08:05:07 -04:00
d24c8453db
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: "???"
18 lines
400 B
C++
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());
|
|
}
|
|
} |