ReXGlue SDK
Loading...
Searching...
No Matches
rex::filesystem::STFSHashEntry Struct Reference

#include <rex/filesystem/stfs.h>

Public Member Functions

u32 GetLevel0NextBlock () const
void SetLevel0NextBlock (u32 value)
STFSHashState GetLevel0AllocationState () const
void SetLevel0AllocationState (STFSHashState value)
u32 GetLevelNFreeBlockCount () const
void SetLevelNNumBlocksFree (u32 value)
u32 GetLevelNNumBlocksUnk () const
void SetLevelNNumBlocksUnk (u32 value)
bool IsLevelNActiveIndexSet () const
void SetLevelNActiveIndex (bool value)
bool IsLevelNWritable () const
void SetLevelNWriteable (bool value)

Public Attributes

u8 sha1 [0x14]
be_u32 info_raw

Detailed Description

A hash table entry, the hash and chain information of a block.

Member Function Documentation

◆ GetLevel0NextBlock()

u32 rex::filesystem::STFSHashEntry::GetLevel0NextBlock ( ) const
inlinenodiscard

Returns the next block of a level 0 chain, 0xFFFFFF at the end of the chain.

◆ IsLevelNActiveIndexSet()

bool rex::filesystem::STFSHashEntry::IsLevelNActiveIndexSet ( ) const
inlinenodiscard

Reports whether a higher level entry uses its secondary table.

Returns
True when the active index bit is set.

Member Data Documentation

◆ info_raw

be_u32 rex::filesystem::STFSHashEntry::info_raw

Packed chain and allocation fields.


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