ReXGlue SDK
Loading...
Searching...
No Matches
rex::xam::UserProfile::BinarySetting Struct Reference
Inheritance diagram for rex::xam::UserProfile::BinarySetting:
[legend]

Public Member Functions

 BinarySetting (u32 id)
 BinarySetting (u32 id, const std::vector< u8 > &value)
void WriteTo (X_USER_PROFILE_SETTING_DATA *data, SettingByteStream *stream) override
std::vector< u8 > Serialize () const override
void Deserialize (const std::vector< u8 > &data) override
Public Member Functions inherited from rex::xam::UserProfile::Setting
 Setting (u32 setting_id, Type type, size_t size, bool is_set)
bool IsTitleSpecific () const

Public Attributes

std::vector< u8 > value
Public Attributes inherited from rex::xam::UserProfile::Setting
u32 setting_id
Type type
size_t size
bool is_set
u32 loaded_title_id

Additional Inherited Members

Public Types inherited from rex::xam::UserProfile::Setting
enum class  Type : u8 {
  kContext = 0 , kInt32 = 1 , kInt64 = 2 , kDouble = 3 ,
  kUnicode = 4 , kFloat = 5 , kBinary = 6 , kDateTime = 7 ,
  kUnset = 0xFF
}

Member Function Documentation

◆ Deserialize()

void rex::xam::UserProfile::BinarySetting::Deserialize ( const std::vector< u8 > & data)
inlineoverridevirtual

Restores the value from bytes saved to disk.

Reimplemented from rex::xam::UserProfile::Setting.

◆ Serialize()

std::vector< u8 > rex::xam::UserProfile::BinarySetting::Serialize ( ) const
inlineoverridevirtual

Returns the bytes saved to disk for a title specific setting.

Reimplemented from rex::xam::UserProfile::Setting.

◆ WriteTo()

void rex::xam::UserProfile::BinarySetting::WriteTo ( X_USER_PROFILE_SETTING_DATA * data,
SettingByteStream * stream )
inlineoverridevirtual

Writes the setting into a guest value.

Parameters
dataThe guest value to fill.
streamThe stream that receives variable length data.

Reimplemented from rex::xam::UserProfile::Setting.


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