CPP06 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
Serializer クラス

A static class to serialize and deserialize a Data pointer. [詳解]

#include <Serializer.hpp>

Serializer 連携図
Collaboration graph

静的公開メンバ関数

static uintptr_t serialize (Data *ptr)
 Converts a Data pointer to a uintptr_t integer.
 
static Datadeserialize (uintptr_t raw)
 Converts a uintptr_t integer back to a Data pointer.
 

詳解

A static class to serialize and deserialize a Data pointer.

This class cannot be instantiated. It provides static methods to convert a pointer to uintptr_t and back.

Serializer.hpp30 行目に定義があります。

関数詳解

◆ deserialize()

Data * Serializer::deserialize ( uintptr_t  raw)
static

Converts a uintptr_t integer back to a Data pointer.

Uses reinterpret_cast to change the type of the integer back to a pointer without changing its bit pattern.

引数
rawThe integer generated by serialize().
戻り値
The pointer to the original Data object.

Serializer.cpp45 行目に定義があります。

◆ serialize()

uintptr_t Serializer::serialize ( Data ptr)
static

Converts a Data pointer to a uintptr_t integer.

Uses reinterpret_cast to change the type of the pointer to an integer without changing its bit pattern.

引数
ptrThe pointer to the Data object to be serialized.
戻り値
The integer representation of the pointer.

Serializer.cpp36 行目に定義があります。


このクラス詳解は次のファイルから抽出されました: