wavelength 1.0.0
Loading...
Searching...
No Matches
AsyncTask Class Reference

One part of an ArkFile read, which a single block of the disc satisfies. More...

#include <blockmgr.h>

Collaboration diagram for AsyncTask:

Public Member Functions

 AsyncTask (ArkFile *pFile, char *pBuffer, int nBlock, int nStart, int nEnd)
 Describe the part of a read.
bool TryComplete ()
 Copy the bytes from the cache when their block is loaded, and report them to the file.
 AsyncTask (ArkFile *file, char *buffer, int blockNum, int start, int end)
 Describe the part of a read that one block satisfies.
bool FillData ()
 Copy the bytes when the block is loaded, and tell the file.

Public Attributes

int mBlock
int mStart
int mEnd
char * mBuffer
ArkFile * mFile
int mBlockNum

Detailed Description

One part of an ArkFile read, which a single block of the disc satisfies.

Part of an archive read that one block satisfies.

The RTTI of the list node includes the class name.

The RTTI includes the class name. The object is 0x14 bytes.

Constructor & Destructor Documentation

◆ AsyncTask() [1/2]

AsyncTask::AsyncTask ( ArkFile * pFile,
char * pBuffer,
int nBlock,
int nStart,
int nEnd )

Describe the part of a read.

Parameters
pFileThe file reading.
pBufferReceives the bytes.
nBlockThe block of the disc.
nStartThe first byte in the block.
nEndThe byte after the last in the block.
Ghidra address:
NTSC-U/C: 0x0028f748
Ghidra address:
PAL: 0x00299110

◆ AsyncTask() [2/2]

AsyncTask::AsyncTask ( ArkFile * file,
char * buffer,
int blockNum,
int start,
int end )

Describe the part of a read that one block satisfies.

Parameters
fileThe file that reads.
bufferReceives the bytes.
blockNumThe block.
startThe offset of the first byte in the block.
endThe offset one past the last byte in the block.
Ghidra address:
0x10010000

Member Function Documentation

◆ TryComplete()

bool AsyncTask::TryComplete ( )

Copy the bytes from the cache when their block is loaded, and report them to the file.

Returns
Whether the block was loaded.
Ghidra address:
NTSC-U/C: 0x0028f768
Ghidra address:
PAL: 0x00299130

◆ FillData()

bool AsyncTask::FillData ( )

Copy the bytes when the block is loaded, and tell the file.

Returns
Whether the block was loaded.
Ghidra address:
0x10010030

Member Data Documentation

◆ mBlock

int AsyncTask::mBlock

The block of the disc.

◆ mStart

int AsyncTask::mStart

The first byte in the block.

The offset of the first byte in the block.

◆ mEnd

int AsyncTask::mEnd

The byte after the last in the block.

The offset one past the last byte in the block.

◆ mBuffer

char * AsyncTask::mBuffer

Receives the bytes.

◆ mFile

ArkFile * AsyncTask::mFile

The file reading.

The file that reads.

◆ mBlockNum

int AsyncTask::mBlockNum

The block.


The documentation for this class was generated from the following files: