resonance 1.0.1
Loading...
Searching...
No Matches
AsyncJobInfo Struct Reference

One queued asynchronous read. More...

#include <async.h>

Collaboration diagram for AsyncJobInfo:

Public Attributes

AsyncJobInfo * mNext
AsyncJobInfo * mPrev
int mSector
int mSectorCount
void * mBuffer
int mSectorOffset
int mLength

Detailed Description

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.

Member Data Documentation

◆ mNext

AsyncJobInfo* AsyncJobInfo::mNext

The next job, null at the end of a chain. +0x00

◆ mPrev

AsyncJobInfo* AsyncJobInfo::mPrev

The previous job, null at the head of a chain. +0x04

◆ mSector

int AsyncJobInfo::mSector

The 64 KiB chunk of the file the job transfers. +0x08

◆ mSectorCount

int AsyncJobInfo::mSectorCount

Always 32, the drive sectors a chunk occupies. No reader. +0x0c

◆ mBuffer

void* AsyncJobInfo::mBuffer

The destination the copy writes to. +0x10

◆ mSectorOffset

int AsyncJobInfo::mSectorOffset

Byte offset inside the chunk the transfer starts at. +0x14

◆ mLength

int AsyncJobInfo::mLength

Bytes to copy. +0x18


The documentation for this struct was generated from the following file: