TombEngine/TR5Main/Specific/IO/ChunkId.h

30 lines
499 B
C
Raw Normal View History

2020-12-21 13:16:29 -03:00
#pragma once
#include "LEB128.h"
#include "Streams.h"
#include <memory>
struct ChunkId
{
private:
byte* m_chunkBytes;
int m_length;
public:
ChunkId(char* bytes, int length);
~ChunkId();
static std::unique_ptr<ChunkId> FromString(const char* str);
static std::unique_ptr<ChunkId> FromString(std::string* str);
static std::unique_ptr<ChunkId> FromStream(BaseStream* stream);
void ToStream(BaseStream* stream);
byte* GetBytes();
int GetLength();
bool EqualsTo(ChunkId* other);
2020-05-19 09:00:24 +02:00
};