OROCHI
 
Loading...
Searching...
No Matches
GxResHeader Struct Reference

リソースヘッダー構造体 More...

#include <GxResBase.h>

Inheritance diagram for GxResHeader:
Collaboration diagram for GxResHeader:

Public Member Functions

初期化
 GxResHeader (void)
 コンストラクタ
 
 GxResHeader (const GxRttiResource &resRtti)
 コンストラクタ (Rtti指定)
 
操作
void set (const GxRttiResource &resRtti)
 情報セット
 
void clear (void)
 情報クリア
 
b32 read (GxStream &stream)
 読み込み
 
b32 write (GxStream &stream)
 書き込み
 
b32 isSameRtti (const GxRttiResource &resRtti) const
 Rtti情報一致判定
 

Static Public Attributes

定義
static constexpr u32 VERSION_SAVE_HIERARCY = GxMath::VALUE_8
 バージョン保持階層
 
static constexpr GxMemory::ALIGNMENT HEADER_ALIGNMENT = GxMemory::ALIGNMENT::_128
 ヘッダーアライメント
 
static constexpr u32 HEADER_SIZE = static_cast<s32>(HEADER_ALIGNMENT)
 ヘッダーサイズ
 
static constexpr u32 PADDING_SIZE = HEADER_SIZE - sizeof(u32) * (VERSION_SAVE_HIERARCY + 3)
 パディングサイズ (ヘッダーサイズ - メンバ変数サイズ)
 

アクセサ

constexpr u32 getMagicNumber (void) const
 識別用マジックナンバー取得
 
constexpr u32 getVersionSavedNum (void) const
 バージョン保持階層数
 
constexpr u32 getVersion (u32 hierarcy=0) const
 バージョン番号取得
 
constexpr GxRttiResource::COMPRESS_TYPE getCompressType (void) const
 圧縮タイプ取得
 
constexpr void setCompressType (const GxRttiResource::COMPRESS_TYPE compressType)
 圧縮タイプ設定
 
static constexpr u32 getSize (void)
 ヘッダーサイズ取得
 

Additional Inherited Members

- Static Public Member Functions inherited from GxStructBase
static GxRtti__getStaticRtti (void)
 

Detailed Description

リソースヘッダー構造体

Member Function Documentation

◆ isSameRtti()

b32 GxResHeader::isSameRtti ( const GxRttiResource & resRtti) const

Rtti情報一致判定

Parameters
resRtti[in] 比較リソースRtti
Returns
一致したらtrue
Note
識別マジックナンバーとバージョン番号での同一判定
Here is the call graph for this function:

◆ read()

b32 GxResHeader::read ( GxStream & stream)

読み込み

Parameters
stream[in] 読み込みストリーム
Returns
成功ならtrue
Here is the call graph for this function:

◆ set()

void GxResHeader::set ( const GxRttiResource & resRtti)

情報セット

Parameters
resRtti[in] 設定リソースRtti
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

b32 GxResHeader::write ( GxStream & stream)

書き込み

Parameters
stream[out] 書き込みストリーム
Returns
成功ならtrue
Here is the call graph for this function:

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