Pulsar  3d3a057
bfgrp_location.h
Go to the documentation of this file.
1 /**
2  * @file
3  * @brief Group location table access
4  */
5 #pragma once
6 
7 #include <pulsar/bfgrp/bfgrp.h>
8 
9 /// Group file location information
10 typedef struct {
11  u32 fileIndex;
12  u32 fileBlockOffset;
13  u32 fileSize;
15 
16 /// Fetch location information from the specified index in the location table
17 PLSR_RC plsrBFGRPLocationGet(const PLSR_BFGRP* bfgrp, u32 index, PLSR_BFGRPLocationInfo* out);
18 /// Fetch location information from the specified index in the location table
19 PLSR_RC plsrBFGRPLocationGet(const PLSR_BFGRP* bfgrp, u32 index, PLSR_BFGRPLocationInfo* out);
20 
21 /// Find location information matching the specified fileIndex
23 
24 NX_INLINE u32 plsrBFGRPLocationCount(const PLSR_BFGRP* bfgrp) {
25  return bfgrp->locationTable.info.count;
26 }
Group file.
Definition: bfgrp.h:17
PLSR_RC plsrBFGRPLocationGet(const PLSR_BFGRP *bfgrp, u32 index, PLSR_BFGRPLocationInfo *out)
Fetch location information from the specified index in the location table.
u32 count
Table entry/block count.
Definition: archive.h:41
PLSR_ArchiveTableInfo info
Cached table information.
Definition: archive.h:47
Group init.
Group file location information.
Definition: bfgrp_location.h:10
u32 PLSR_RC
Result code returned by Pulsar functions.
Definition: types.h:73
PLSR_RC plsrBFGRPLocationFindByFileIndex(const PLSR_BFGRP *bfgrp, u32 fileIndex, PLSR_BFGRPLocationInfo *out)
Find location information matching the specified fileIndex.