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

One open stream on a mounted archive. More...

#include <openarkobject.h>

Collaboration diagram for ArkStream:

Public Member Functions

OpenArkObject * FindArk () const
 Find the mounted archive this stream reads from.

Public Attributes

int mArkPosition
int mPosition
int mFile
int mHandle
ArkFileEntry * mEntry

Detailed Description

One open stream on a mounted archive.

A handle with bit 0x4000 set identifies a stream inside an archive rather than a loose file.

Member Function Documentation

◆ FindArk()

OpenArkObject * ArkStream::FindArk ( ) const

Find the mounted archive this stream reads from.

Returns
The archive whose file matches mFile, or null when none is mounted.
Ghidra address:
NTSC-U/C: 0x0055c1b8
Ghidra address:
PAL: 0x0059d3d8

Member Data Documentation

◆ mArkPosition

int ArkStream::mArkPosition

Read position as a byte offset into the whole archive.

◆ mPosition

int ArkStream::mPosition

Read position as a byte offset into the file.

◆ mFile

int ArkStream::mFile

The archive's file, which is what ties a stream to its archive.

◆ mHandle

int ArkStream::mHandle

The stream handle, with bit 0x4000 cleared.

◆ mEntry

ArkFileEntry* ArkStream::mEntry

The file entry this stream reads.


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