|
resonance 1.0.1
|
One queued asynchronous read. More...
#include <async.h>

Public Attributes | |
| AsyncJobInfo * | mNext |
| AsyncJobInfo * | mPrev |
| int | mSector |
| int | mSectorCount |
| void * | mBuffer |
| int | mSectorOffset |
| int | mLength |
One queued asynchronous read.
Its name comes from the debugging symbols of the North American demo release. A job is 28 bytes and is stored in one preallocated ring. No job is ever allocated separately. mNext threads a job onto exactly one of three lists at a time (the free list, a stream's pending list, and the completed list).
A job covers one chunk of kSectorCacheRowSize bytes. mSector therefore indexes 64 KiB chunks of the file rather than drive sectors, and DeliverAsyncJobData() reconstructs the byte offset as mSector * kSectorCacheRowSize + mSectorOffset.
| AsyncJobInfo* AsyncJobInfo::mNext |
The next job, null at the end of a chain. +0x00
| AsyncJobInfo* AsyncJobInfo::mPrev |
The previous job, null at the head of a chain. +0x04
| int AsyncJobInfo::mSector |
The 64 KiB chunk of the file the job transfers. +0x08
| int AsyncJobInfo::mSectorCount |
Always 32, the drive sectors a chunk occupies. No reader. +0x0c
| void* AsyncJobInfo::mBuffer |
The destination the copy writes to. +0x10
| int AsyncJobInfo::mSectorOffset |
Byte offset inside the chunk the transfer starts at. +0x14
| int AsyncJobInfo::mLength |
Bytes to copy. +0x18