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
4
#include "
JSystem/JHostIO/JHICommonMem.h
"
5
6
class
JHICommBufHeader
{
7
public
:
8
void
init
();
9
void
init
(
JHICommonMem
*,
u32
,
u32
,
u32
);
10
int
load
();
11
12
u32
getMsgBufSize
();
13
14
/* 0x00 */
JHICommonMem
*
mp_memBuffer
;
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
28
class
JHICommBufWriter
{
29
public
:
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
46
JHICommBufWriter
(
u32
,
u32
,
u32
alignment
);
47
int
writeBegin
();
48
void
writeEnd
();
49
int
write
(
void
*,
int
);
50
51
/* 0x00 */
Header
m_header
;
52
/* 0x38 */
JHIMemBuf
*
mp_memBuffer
;
53
};
54
55
class
JHICommBufReader
{
56
public
:
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
69
JHICommBufReader
(
u32
,
u32
,
u32
alignment
);
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
;
77
/* 0x34 */
JHIMemBuf
*
mp_memBuffer
;
78
};
79
80
struct
JHICmnMem
{
81
u32
sendBegin
() {
return
mp_writeBuf
->
writeBegin
(); }
82
int
sendCont
(
const
void
*
param_0
,
int
param_1
) {
return
mp_writeBuf
->
write
((
void
*)
param_0
,
param_1
); }
83
void
sendEnd
() {
mp_writeBuf
->
writeEnd
(); }
84
85
void
setBuf
(
JHICommBufReader
*
pReader
,
JHICommBufWriter
*
pWriter
) {
86
mp_readBuf
=
pReader
;
87
mp_writeBuf
=
pWriter
;
88
}
89
90
/* 0x0 */
JHICommBufReader
*
mp_readBuf
;
91
/* 0x4 */
JHICommBufWriter
*
mp_writeBuf
;
92
/* 0x8 */
u8
field_0x8
;
93
};
94
95
struct
JHIContext
{
96
JHICommBufReader
*
mp_reader
;
97
JHICommBufWriter
*
mp_writer
;
98
};
99
100
#endif
/* JHICOMM_H */
JHICommonMem.h
cLib_calcTimer
T cLib_calcTimer(T *value)
Definition
c_lib.h:79
JHICommBufHeader
Definition
JHIComm.h:6
JHICommBufHeader::field_0x10
u32 field_0x10
Definition
JHIComm.h:18
JHICommBufHeader::field_0x20
u32 field_0x20
Definition
JHIComm.h:22
JHICommBufHeader::field_0x2c
u32 field_0x2c
Definition
JHIComm.h:25
JHICommBufHeader::field_0x1c
u32 field_0x1c
Definition
JHIComm.h:21
JHICommBufHeader::field_0xc
u32 field_0xc
Definition
JHIComm.h:17
JHICommBufHeader::init
void init()
Definition
JHIComm.cpp:5
JHICommBufHeader::mp_memBuffer
JHICommonMem * mp_memBuffer
Definition
JHIComm.h:14
JHICommBufHeader::m_alignment
u32 m_alignment
Definition
JHIComm.h:24
JHICommBufHeader::field_0x14
u32 field_0x14
Definition
JHIComm.h:19
JHICommBufHeader::load
int load()
Definition
JHIComm.cpp:39
JHICommBufHeader::field_0x4
u32 field_0x4
Definition
JHIComm.h:15
JHICommBufHeader::m_msgBufSize
u32 m_msgBufSize
Definition
JHIComm.h:16
JHICommBufHeader::getMsgBufSize
u32 getMsgBufSize()
JHICommBufHeader::field_0x24
u32 field_0x24
Definition
JHIComm.h:23
JHICommBufHeader::field_0x18
u32 field_0x18
Definition
JHIComm.h:20
JHICommBufReader
Definition
JHIComm.h:55
JHICommBufReader::readEnd
void readEnd()
Definition
JHIComm.cpp:77
JHICommBufReader::mp_memBuffer
JHIMemBuf * mp_memBuffer
Definition
JHIComm.h:77
JHICommBufReader::m_header
Header m_header
Definition
JHIComm.h:76
JHICommBufReader::available
u32 available()
Definition
JHIComm.h:74
JHICommBufReader::readBegin
int readBegin()
Definition
JHIComm.cpp:73
JHICommBufReader::read
int read(void *, int)
Definition
JHIComm.cpp:82
JHICommBufWriter
Definition
JHIComm.h:28
JHICommBufWriter::write
int write(void *, int)
Definition
JHIComm.cpp:231
JHICommBufWriter::mp_memBuffer
JHIMemBuf * mp_memBuffer
Definition
JHIComm.h:52
JHICommBufWriter::m_header
Header m_header
Definition
JHIComm.h:51
JHICommBufWriter::writeBegin
int writeBegin()
Definition
JHIComm.cpp:215
JHICommBufWriter::writeEnd
void writeEnd()
Definition
JHIComm.cpp:226
JHICommonMem
Definition
JHICommonMem.h:44
JHIMemBuf
Definition
JHICommonMem.h:60
JHICmnMem
Definition
JHIComm.h:80
JHICmnMem::sendEnd
void sendEnd()
Definition
JHIComm.h:83
JHICmnMem::mp_readBuf
JHICommBufReader * mp_readBuf
Definition
JHIComm.h:90
JHICmnMem::mp_writeBuf
JHICommBufWriter * mp_writeBuf
Definition
JHIComm.h:91
JHICmnMem::sendBegin
u32 sendBegin()
Definition
JHIComm.h:81
JHICmnMem::field_0x8
u8 field_0x8
Definition
JHIComm.h:92
JHICmnMem::sendCont
int sendCont(const void *param_0, int param_1)
Definition
JHIComm.h:82
JHICmnMem::setBuf
void setBuf(JHICommBufReader *pReader, JHICommBufWriter *pWriter)
Definition
JHIComm.h:85
JHICommBufReader::Header
Definition
JHIComm.h:57
JHICommBufReader::Header::getGetAdrs
u32 getGetAdrs() const
Definition
JHIComm.cpp:144
JHICommBufReader::Header::updateGetAdrs
void updateGetAdrs()
Definition
JHIComm.cpp:56
JHICommBufReader::Header::getContSize
int getContSize()
Definition
JHIComm.cpp:152
JHICommBufReader::Header::getReadableSize
u32 getReadableSize() const
Definition
JHIComm.cpp:62
JHICommBufReader::Header::field_0x30
u32 field_0x30
Definition
JHIComm.h:66
JHICommBufReader::Header::addGetAdrs
void addGetAdrs(int)
Definition
JHIComm.cpp:137
JHICommBufReader::Header::alignGetAdrs
void alignGetAdrs()
Definition
JHIComm.cpp:148
JHICommBufReader::Header::load
int load()
JHICommBufWriter::Header
Definition
JHIComm.h:30
JHICommBufWriter::Header::field_0x33
u8 field_0x33
Definition
JHIComm.h:42
JHICommBufWriter::Header::addPutAdrs
void addPutAdrs(int)
Definition
JHIComm.cpp:293
JHICommBufWriter::Header::field_0x34
u32 field_0x34
Definition
JHIComm.h:43
JHICommBufWriter::Header::getRemSize
int getRemSize()
Definition
JHIComm.cpp:184
JHICommBufWriter::Header::alignPutAdrs
void alignPutAdrs()
Definition
JHIComm.cpp:304
JHICommBufWriter::Header::load
int load()
Definition
JHIComm.cpp:165
JHICommBufWriter::Header::getWritebleSize
u32 getWritebleSize() const
Definition
JHIComm.cpp:202
JHICommBufWriter::Header::field_0x32
u8 field_0x32
Definition
JHIComm.h:41
JHICommBufWriter::Header::getPutAdrs
u32 getPutAdrs() const
Definition
JHIComm.cpp:300
JHICommBufWriter::Header::field_0x31
u8 field_0x31
Definition
JHIComm.h:40
JHICommBufWriter::Header::field_0x30
u8 field_0x30
Definition
JHIComm.h:39
JHICommBufWriter::Header::updatePutAdrs
void updatePutAdrs()
Definition
JHIComm.cpp:188
JHIContext
Definition
JHIComm.h:95
JHIContext::mp_reader
JHICommBufReader * mp_reader
Definition
JHIComm.h:96
JHIContext::mp_writer
JHICommBufWriter * mp_writer
Definition
JHIComm.h:97
u32
unsigned long u32
Definition
types.h:10
u8
unsigned char u8
Definition
types.h:8
include
JSystem
JHostIO
JHIComm.h
Generated by
1.9.8