Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JHIComm.h
Go to the documentation of this file.
1#ifndef JHICOMM_H
2#define JHICOMM_H
3
5
7public:
8 void init();
9 void init(JHICommonMem*, u32, u32, u32);
10 int load();
11
13
15 /* 0x04 */ u32 field_0x4;
16 /* 0x08 */ u32 m_msgBufSize;
17 /* 0x0C */ u32 field_0xc;
18 /* 0x10 */ u32 field_0x10;
19 /* 0x14 */ u32 field_0x14;
20 /* 0x18 */ u32 field_0x18;
21 /* 0x1C */ u32 field_0x1c;
22 /* 0x20 */ u32 field_0x20;
23 /* 0x24 */ u32 field_0x24;
24 /* 0x28 */ u32 m_alignment;
25 /* 0x2C */ u32 field_0x2c;
26};
27
29public:
30 struct Header : public JHICommBufHeader {
31 int load();
32 int getRemSize();
33 void updatePutAdrs();
34 u32 getWritebleSize() const;
35 void alignPutAdrs();
36 void addPutAdrs(int);
37 u32 getPutAdrs() const;
38
39 /* 0x30 */ u8 field_0x30;
40 /* 0x31 */ u8 field_0x31;
41 /* 0x32 */ u8 field_0x32;
42 /* 0x33 */ u8 field_0x33;
43 /* 0x34 */ u32 field_0x34;
44 };
45
47 int writeBegin();
48 void writeEnd();
49 int write(void*, int);
50
51 /* 0x00 */ Header m_header;
53};
54
56public:
57 struct Header : public JHICommBufHeader {
58 int load();
59 void updateGetAdrs();
60 u32 getReadableSize() const;
61 void addGetAdrs(int);
62 u32 getGetAdrs() const;
63 void alignGetAdrs();
64 int getContSize();
65
66 /* 0x30 */ u32 field_0x30;
67 };
68
70 int readBegin();
71 void readEnd();
72 int read(void*, int);
73
74 u32 available() { return m_header.load() ? 0xFFFFFFFF : m_header.getReadableSize(); }
75
76 /* 0x00 */ Header m_header;
78};
79
94
99
100#endif /* JHICOMM_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:79
Definition JHIComm.h:6
u32 field_0x10
Definition JHIComm.h:18
u32 field_0x20
Definition JHIComm.h:22
u32 field_0x2c
Definition JHIComm.h:25
u32 field_0x1c
Definition JHIComm.h:21
u32 field_0xc
Definition JHIComm.h:17
void init()
Definition JHIComm.cpp:5
JHICommonMem * mp_memBuffer
Definition JHIComm.h:14
u32 m_alignment
Definition JHIComm.h:24
u32 field_0x14
Definition JHIComm.h:19
int load()
Definition JHIComm.cpp:39
u32 field_0x4
Definition JHIComm.h:15
u32 m_msgBufSize
Definition JHIComm.h:16
u32 field_0x24
Definition JHIComm.h:23
u32 field_0x18
Definition JHIComm.h:20
Definition JHIComm.h:55
void readEnd()
Definition JHIComm.cpp:77
JHIMemBuf * mp_memBuffer
Definition JHIComm.h:77
Header m_header
Definition JHIComm.h:76
u32 available()
Definition JHIComm.h:74
int readBegin()
Definition JHIComm.cpp:73
int read(void *, int)
Definition JHIComm.cpp:82
Definition JHIComm.h:28
int write(void *, int)
Definition JHIComm.cpp:231
JHIMemBuf * mp_memBuffer
Definition JHIComm.h:52
Header m_header
Definition JHIComm.h:51
int writeBegin()
Definition JHIComm.cpp:215
void writeEnd()
Definition JHIComm.cpp:226
Definition JHICommonMem.h:44
Definition JHICommonMem.h:60
Definition JHIComm.h:80
void sendEnd()
Definition JHIComm.h:83
JHICommBufReader * mp_readBuf
Definition JHIComm.h:90
JHICommBufWriter * mp_writeBuf
Definition JHIComm.h:91
u32 sendBegin()
Definition JHIComm.h:81
u8 field_0x8
Definition JHIComm.h:92
int sendCont(const void *param_0, int param_1)
Definition JHIComm.h:82
void setBuf(JHICommBufReader *pReader, JHICommBufWriter *pWriter)
Definition JHIComm.h:85
Definition JHIComm.h:57
u32 getGetAdrs() const
Definition JHIComm.cpp:144
void updateGetAdrs()
Definition JHIComm.cpp:56
int getContSize()
Definition JHIComm.cpp:152
u32 getReadableSize() const
Definition JHIComm.cpp:62
u32 field_0x30
Definition JHIComm.h:66
void addGetAdrs(int)
Definition JHIComm.cpp:137
void alignGetAdrs()
Definition JHIComm.cpp:148
Definition JHIComm.h:30
u8 field_0x33
Definition JHIComm.h:42
void addPutAdrs(int)
Definition JHIComm.cpp:293
u32 field_0x34
Definition JHIComm.h:43
int getRemSize()
Definition JHIComm.cpp:184
void alignPutAdrs()
Definition JHIComm.cpp:304
int load()
Definition JHIComm.cpp:165
u32 getWritebleSize() const
Definition JHIComm.cpp:202
u8 field_0x32
Definition JHIComm.h:41
u32 getPutAdrs() const
Definition JHIComm.cpp:300
u8 field_0x31
Definition JHIComm.h:40
u8 field_0x30
Definition JHIComm.h:39
void updatePutAdrs()
Definition JHIComm.cpp:188
Definition JHIComm.h:95
JHICommBufReader * mp_reader
Definition JHIComm.h:96
JHICommBufWriter * mp_writer
Definition JHIComm.h:97
unsigned long u32
Definition types.h:10
unsigned char u8
Definition types.h:8