NeKernel dev
Loading...
Searching...
No Matches
Kernel::NeFileSystemParser Class Referencefinal

#include <NeFS.h>

Public Member Functions

 NeFileSystemParser ()=default
 ~NeFileSystemParser ()=default
_Output BOOL CreateFork (_Input NEFS_FORK_STRUCT &in)
 Creates a new fork inside the NeFS partition.
_Output NEFS_FORK_STRUCTFindFork (_Input NEFS_CATALOG_STRUCT *catalog, _Input const Char *name, Boolean data)
 Find fork inside New filesystem.
_Output Void RemoveFork (_Input NEFS_FORK_STRUCT *fork)
_Output Void CloseFork (_Input NEFS_FORK_STRUCT *fork)
_Output NEFS_CATALOG_STRUCTFindCatalog (_Input const Char *catalog_name, Lba &ou_lba, Bool search_hidden=YES, Bool local_search=NO)
_Output NEFS_CATALOG_STRUCTGetCatalog (_Input const Char *name)
_Output NEFS_CATALOG_STRUCTCreateCatalog (_Input const Char *name, _Input const Int32 &flags, _Input const Int32 &kind)
_Output NEFS_CATALOG_STRUCTCreateCatalog (_Input const Char *name)
_Output Bool WriteCatalog (_Input const Char *catalog, _Input Bool rsrc, _Input VoidPtr data, _Input SizeT sz, _Input const Char *name)
_Output VoidPtr ReadCatalog (_Input _Output NEFS_CATALOG_STRUCT *catalog, _Input Bool isRsrcFork, _Input SizeT dataSz, _Input const Char *forkName)
_Output Bool Seek (_Input _Output NEFS_CATALOG_STRUCT *catalog, SizeT off)
_Output SizeT Tell (_Input _Output NEFS_CATALOG_STRUCT *catalog)
_Output Bool RemoveCatalog (_Input const Char *catalog)
_Output Bool CloseCatalog (_InOut NEFS_CATALOG_STRUCT *catalog)
_Output Bool Format (_Input _Output DriveTrait *drive, _Input const Int32 flags, const Char *part_name)
 Make a EPM+NeFS drive out of the disk.

Public Attributes

UInt32 mDriveIndex {kNeFSSubDriveA}

Constructor & Destructor Documentation

◆ NeFileSystemParser()

Kernel::NeFileSystemParser::NeFileSystemParser ( )
explicitdefault

◆ ~NeFileSystemParser()

Kernel::NeFileSystemParser::~NeFileSystemParser ( )
default

Member Function Documentation

◆ CloseCatalog()

_Output Bool Kernel::NeFileSystemParser::CloseCatalog ( _InOut NEFS_CATALOG_STRUCT * catalog)

◆ CloseFork()

_Output Void Kernel::NeFileSystemParser::CloseFork ( _Input NEFS_FORK_STRUCT * fork)

◆ CreateCatalog() [1/2]

_Output NEFS_CATALOG_STRUCT * Kernel::NeFileSystemParser::CreateCatalog ( _Input const Char * name)

◆ CreateCatalog() [2/2]

_Output NEFS_CATALOG_STRUCT * Kernel::NeFileSystemParser::CreateCatalog ( _Input const Char * name,
_Input const Int32 & flags,
_Input const Int32 & kind )

◆ CreateFork()

_Output BOOL Kernel::NeFileSystemParser::CreateFork ( _Input NEFS_FORK_STRUCT & in)

Creates a new fork inside the NeFS partition.

Parameters
catalogit's catalog
theForkthe fork itself.
Returns
the fork

◆ FindCatalog()

_Output NEFS_CATALOG_STRUCT * Kernel::NeFileSystemParser::FindCatalog ( _Input const Char * catalog_name,
Lba & ou_lba,
Bool search_hidden = YES,
Bool local_search = NO )

◆ FindFork()

_Output NEFS_FORK_STRUCT * Kernel::NeFileSystemParser::FindFork ( _Input NEFS_CATALOG_STRUCT * catalog,
_Input const Char * name,
Boolean data )

Find fork inside New filesystem.

Parameters
catalogthe catalog.
namethe fork name.
Returns
the fork.

◆ Format()

_Output Bool Kernel::NeFileSystemParser::Format ( _Input _Output DriveTrait * drive,
_Input const Int32 flags,
const Char * part_name )

Make a EPM+NeFS drive out of the disk.

Parameters
driveThe drive to write on.
Returns
If it was sucessful, see err_local_get().

◆ GetCatalog()

_Output NEFS_CATALOG_STRUCT * Kernel::NeFileSystemParser::GetCatalog ( _Input const Char * name)

◆ ReadCatalog()

_Output VoidPtr Kernel::NeFileSystemParser::ReadCatalog ( _Input _Output NEFS_CATALOG_STRUCT * catalog,
_Input Bool isRsrcFork,
_Input SizeT dataSz,
_Input const Char * forkName )

◆ RemoveCatalog()

_Output Bool Kernel::NeFileSystemParser::RemoveCatalog ( _Input const Char * catalog)

◆ RemoveFork()

_Output Void Kernel::NeFileSystemParser::RemoveFork ( _Input NEFS_FORK_STRUCT * fork)

◆ Seek()

_Output Bool Kernel::NeFileSystemParser::Seek ( _Input _Output NEFS_CATALOG_STRUCT * catalog,
SizeT off )

◆ Tell()

_Output SizeT Kernel::NeFileSystemParser::Tell ( _Input _Output NEFS_CATALOG_STRUCT * catalog)

◆ WriteCatalog()

_Output Bool Kernel::NeFileSystemParser::WriteCatalog ( _Input const Char * catalog,
_Input Bool rsrc,
_Input VoidPtr data,
_Input SizeT sz,
_Input const Char * name )

Member Data Documentation

◆ mDriveIndex

UInt32 Kernel::NeFileSystemParser::mDriveIndex {kNeFSSubDriveA}

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