EHS
PNG_Chunk.h
Go to the documentation of this file.
1#pragma once
2
3#include "ehs/EHS.h"
4#include "ehs/Str.h"
5#include "ehs/Serializer.h"
6
7namespace ehs
8{
9 class EHS_LIB_IO PNG_Chunk
10 {
11 private:
12 Str_8 id;
13 UInt_64 hashId;
15 Byte crc[4];
16
17 public:
18 PNG_Chunk();
19
20 PNG_Chunk(const Str_8& id, const Serializer<UInt_64>& data, const Byte crc[4]);
21
22 PNG_Chunk(const PNG_Chunk& chunk);
23
24 PNG_Chunk& operator=(const PNG_Chunk& chunk);
25
26 Str_8 GetId() const;
27
28 UInt_64 GetHashId() const;
29
30 Serializer<UInt_64>* GetData();
31
32 const unsigned char* GetCRC() const;
33 };
34}
Definition: PNG_Chunk.h:10
Definition: Anchor.h:6
unsigned char Byte
Definition: Types.h:39