CPP06 1.0
|
A static class to serialize and deserialize a Data pointer. [詳解]
#include <Serializer.hpp>
静的公開メンバ関数 | |
static uintptr_t | serialize (Data *ptr) |
Converts a Data pointer to a uintptr_t integer. | |
static Data * | deserialize (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.hpp の 30 行目に定義があります。
|
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.
raw | The integer generated by serialize(). |
Serializer.cpp の 45 行目に定義があります。
|
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.
ptr | The pointer to the Data object to be serialized. |
Serializer.cpp の 36 行目に定義があります。