EHS
Loading...
Searching...
No Matches
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
31
32 const unsigned char* GetCRC() const;
33 };
34}
Str_8 GetId() const
Definition PNG_Chunk.cpp:36
UInt_64 GetHashId() const
Definition PNG_Chunk.cpp:41
PNG_Chunk()
Definition PNG_Chunk.cpp:5
Serializer< UInt_64 > * GetData()
Definition PNG_Chunk.cpp:46
const unsigned char * GetCRC() const
Definition PNG_Chunk.cpp:51
PNG_Chunk & operator=(const PNG_Chunk &chunk)
Definition PNG_Chunk.cpp:20
Definition Serializer.h:25
Definition Anchor.h:6
Str< Char_8, UInt_64 > Str_8
Definition Str.h:1953
unsigned char Byte
Definition Types.h:39