Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
msgbuf.c File Reference

Functions

void TRKSetBufferUsed (TRKBuffer *msg, BOOL state)
 
DSError TRKInitializeMessageBuffers (void)
 
DSError TRKGetFreeBuffer (int *msgID, TRKBuffer **outMsg)
 
voidTRKGetBuffer (int idx)
 
void TRKReleaseBuffer (int idx)
 
void TRKResetBuffer (TRKBuffer *msg, BOOL keepData)
 
DSError TRKSetBufferPosition (TRKBuffer *msg, u32 pos)
 
DSError TRKAppendBuffer (TRKBuffer *msg, const void *data, size_t length)
 
DSError TRKReadBuffer (TRKBuffer *msg, void *data, size_t length)
 
DSError TRKAppendBuffer1_ui8 (TRKBuffer *buffer, const u8 data)
 
DSError TRKAppendBuffer1_ui32 (TRKBuffer *buffer, const u32 data)
 
DSError TRKAppendBuffer1_ui64 (TRKBuffer *buffer, const u64 data)
 
DSError TRKAppendBuffer_ui8 (TRKBuffer *buffer, const u8 *data, int count)
 
DSError TRKAppendBuffer_ui32 (TRKBuffer *buffer, const u32 *data, int count)
 
DSError TRKReadBuffer1_ui8 (TRKBuffer *buffer, u8 *data)
 
DSError TRKReadBuffer1_ui32 (TRKBuffer *buffer, u32 *data)
 
DSError TRKReadBuffer1_ui64 (TRKBuffer *buffer, u64 *data)
 
DSError TRKReadBuffer_ui8 (TRKBuffer *buffer, u8 *data, int count)
 
DSError TRKReadBuffer_ui32 (TRKBuffer *buffer, u32 *data, int count)
 

Variables

TRKBuffer gTRKMsgBufs [3]
 

Function Documentation

◆ TRKAppendBuffer()

DSError TRKAppendBuffer ( TRKBuffer msg,
const void data,
size_t  length 
)

◆ TRKAppendBuffer1_ui32()

DSError TRKAppendBuffer1_ui32 ( TRKBuffer buffer,
const u32  data 
)

◆ TRKAppendBuffer1_ui64()

DSError TRKAppendBuffer1_ui64 ( TRKBuffer buffer,
const u64  data 
)

◆ TRKAppendBuffer1_ui8()

DSError TRKAppendBuffer1_ui8 ( TRKBuffer buffer,
const u8  data 
)

◆ TRKAppendBuffer_ui32()

DSError TRKAppendBuffer_ui32 ( TRKBuffer buffer,
const u32 data,
int  count 
)

◆ TRKAppendBuffer_ui8()

DSError TRKAppendBuffer_ui8 ( TRKBuffer buffer,
const u8 data,
int  count 
)

◆ TRKGetBuffer()

void * TRKGetBuffer ( int  idx)

◆ TRKGetFreeBuffer()

DSError TRKGetFreeBuffer ( int msgID,
TRKBuffer **  outMsg 
)

◆ TRKInitializeMessageBuffers()

DSError TRKInitializeMessageBuffers ( void  )

◆ TRKReadBuffer()

DSError TRKReadBuffer ( TRKBuffer msg,
void data,
size_t  length 
)

◆ TRKReadBuffer1_ui32()

DSError TRKReadBuffer1_ui32 ( TRKBuffer buffer,
u32 data 
)

◆ TRKReadBuffer1_ui64()

DSError TRKReadBuffer1_ui64 ( TRKBuffer buffer,
u64 data 
)

◆ TRKReadBuffer1_ui8()

DSError TRKReadBuffer1_ui8 ( TRKBuffer buffer,
u8 data 
)

◆ TRKReadBuffer_ui32()

DSError TRKReadBuffer_ui32 ( TRKBuffer buffer,
u32 data,
int  count 
)

◆ TRKReadBuffer_ui8()

DSError TRKReadBuffer_ui8 ( TRKBuffer buffer,
u8 data,
int  count 
)

◆ TRKReleaseBuffer()

void TRKReleaseBuffer ( int  idx)

◆ TRKResetBuffer()

void TRKResetBuffer ( TRKBuffer msg,
BOOL  keepData 
)

◆ TRKSetBufferPosition()

DSError TRKSetBufferPosition ( TRKBuffer msg,
u32  pos 
)

◆ TRKSetBufferUsed()

void TRKSetBufferUsed ( TRKBuffer msg,
BOOL  state 
)

Variable Documentation

◆ gTRKMsgBufs

TRKBuffer gTRKMsgBufs[3]