Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
data.h
Go to the documentation of this file.
1#ifndef JMESSAGE_DATA_H
2#define JMESSAGE_DATA_H
3
5
6namespace JMessage {
7
12struct data {
15
16 const void* getContent() const { return (char*)getRaw() + 0x20; }
17 char* get() const { return (char*)getRaw(); }
18
19 u32* get_signature() const { return (u32*)(get() + 0x0); }
20 u32 get_type() const { return *(u32*)(get() + 0x4); }
21 u32 get_blockNumber() const { return *(u32*)(get() + 0xC); }
22 u8 get_encoding() const { return *(u8*)(get() + 0x10); }
23 };
24
28
31
32 char* get() const { return (char*)getRaw(); }
33
34 char* getContent() const { return (char*)getRaw() + 0x10; }
35
36 u16 get_messageEntrySize() const { return *(u16*)(get() + 0xA); }
37
38 u16 get_messageEntryNumber() const { return *(u16*)(get() + 0x8); }
39
40 u16 get_groupID() const { return *(u16*)(get() + 0xC); }
41 };
42
46
50
51 static u32 getTagCode(u32 tag) { return tag & 0xFFFF; }
52 static u32 getTagGroup(u32 tag) { return (tag >> 0x10) & 0xFF; }
53
55
56 static const int gcTagBegin = '\x1A';
57};
58}; // namespace JMessage
59
60#endif /* JMESSAGE_DATA_H */
Definition control.h:6
TParseData_aligned(const void *pContent)
Definition binary.h:31
const void * getRaw() const
Definition binary.h:23
TParse_TBlock_color(const void *data)
Definition data.h:48
char * get() const
Definition data.h:32
u16 get_messageEntryNumber() const
Definition data.h:38
TParse_TBlock_info(const void *data)
Definition data.h:30
u16 get_messageEntrySize() const
Definition data.h:36
u16 get_groupID() const
Definition data.h:40
char * getContent() const
Definition data.h:34
TParse_TBlock_messageID(const void *data)
Definition data.h:44
Definition data.h:25
TParse_TBlock(const void *data)
Definition data.h:26
Definition data.h:13
char * get() const
Definition data.h:17
u8 get_encoding() const
Definition data.h:22
const void * getContent() const
Definition data.h:16
u32 get_type() const
Definition data.h:20
u32 get_blockNumber() const
Definition data.h:21
u32 * get_signature() const
Definition data.h:19
TParse_THeader(const void *data)
Definition data.h:14
Definition data.h:12
static const int gcTagBegin
Definition data.h:56
static u32 getTagGroup(u32 tag)
Definition data.h:52
static u32 ga4cSignature
Definition data.h:54
static u32 getTagCode(u32 tag)
Definition data.h:51
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8