mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
27 lines
564 B
C++
27 lines
564 B
C++
/*
|
|
* Copyright (C)
|
|
*
|
|
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
|
|
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
|
*/
|
|
|
|
#ifndef CHUNK_H
|
|
#define CHUNK_H
|
|
#include "Define.h"
|
|
#include <string>
|
|
class ChunkedData;
|
|
|
|
class Chunk
|
|
{
|
|
public:
|
|
Chunk(const char* name, uint32 length, uint32 offset, FILE* stream) : Name(name), Length(length), Offset(offset), Stream(stream) {}
|
|
|
|
int32 FindSubChunkOffset(std::string name);
|
|
FILE* GetStream();
|
|
std::string Name;
|
|
uint32 Length;
|
|
uint32 Offset;
|
|
FILE* Stream;
|
|
};
|
|
|
|
#endif |