This class wraps the native C++ apache::geode::client::Serializable
objects as managed IGeodeSerializable objects.
More...
Inherits SBWrap< apache::geode::client::Serializable >, and Apache::Geode::Client::IGeodeSerializable.
Inherited by Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >, Apache::Geode::Client::CacheableKey, Apache::Geode::Client::CacheableStringArray, Apache::Geode::Client::Internal::CacheableHashSetType< TYPEID, HSTYPE >, Apache::Geode::Client::Struct, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::BooleanArray, apache::geode::client::BooleanArrayPtr, bool, GeodeClassIds::BooleanArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableBytes, apache::geode::client::CacheableBytesPtr, Byte, GeodeClassIds::CacheableBytes >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableDoubleArray, apache::geode::client::CacheableDoubleArrayPtr, Double, GeodeClassIds::CacheableDoubleArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableFloatArray, apache::geode::client::CacheableFloatArrayPtr, Single, GeodeClassIds::CacheableFloatArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt16Array, apache::geode::client::CacheableInt16ArrayPtr, System::Int16, GeodeClassIds::CacheableInt16Array >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt32Array, apache::geode::client::CacheableInt32ArrayPtr, System::Int32, GeodeClassIds::CacheableInt32Array >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt64Array, apache::geode::client::CacheableInt64ArrayPtr, System::Int64, GeodeClassIds::CacheableInt64Array >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CharArray, apache::geode::client::CharArrayPtr, Char, GeodeClassIds::CharArray >, Apache::Geode::Client::Internal::CacheableHashSetType< Apache::Geode::Client::GeodeClassIds::CacheableHashSet, apache::geode::client::CacheableHashSet >, and Apache::Geode::Client::Internal::CacheableHashSetType< Apache::Geode::Client::GeodeClassIds::CacheableLinkedHashSet, apache::geode::client::CacheableLinkedHashSet >.
|
virtual System::UInt32 | ClassId [get] |
| Returns the classId of the instance being serialized. More...
|
|
virtual System::UInt32 | ObjectSize [get] |
| return the size of this object in bytes More...
|
|
This class wraps the native C++ apache::geode::client::Serializable
objects as managed IGeodeSerializable objects.
◆ FromData()
Deserializes the native (C++) object – returns an instance of the Serializable
class with the native object wrapped inside.
- Parameters
-
input | the DataInput stream to use for reading the object data |
- Returns
- the deserialized object
Implements Apache::Geode::Client::IGeodeSerializable.
Reimplemented in Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt32Array, apache::geode::client::CacheableInt32ArrayPtr, System::Int32, GeodeClassIds::CacheableInt32Array >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableDoubleArray, apache::geode::client::CacheableDoubleArrayPtr, Double, GeodeClassIds::CacheableDoubleArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt16Array, apache::geode::client::CacheableInt16ArrayPtr, System::Int16, GeodeClassIds::CacheableInt16Array >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableBytes, apache::geode::client::CacheableBytesPtr, Byte, GeodeClassIds::CacheableBytes >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CharArray, apache::geode::client::CharArrayPtr, Char, GeodeClassIds::CharArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableFloatArray, apache::geode::client::CacheableFloatArrayPtr, Single, GeodeClassIds::CacheableFloatArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::BooleanArray, apache::geode::client::BooleanArrayPtr, bool, GeodeClassIds::BooleanArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt64Array, apache::geode::client::CacheableInt64ArrayPtr, System::Int64, GeodeClassIds::CacheableInt64Array >, Apache::Geode::Client::CacheableString, Apache::Geode::Client::CacheableStringArray, Apache::Geode::Client::Internal::CacheableHashSetType< TYPEID, HSTYPE >, Apache::Geode::Client::Internal::CacheableHashSetType< Apache::Geode::Client::GeodeClassIds::CacheableLinkedHashSet, apache::geode::client::CacheableLinkedHashSet >, and Apache::Geode::Client::Internal::CacheableHashSetType< Apache::Geode::Client::GeodeClassIds::CacheableHashSet, apache::geode::client::CacheableHashSet >.
◆ operator Apache::Geode::Client::Serializable^() [1/17]
Implicit conversion operator from an boolean array to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [2/17]
Implicit conversion operator from an array of bytes to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [3/17]
Implicit conversion operator from a character array to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [4/17]
Implicit conversion operator from a double array to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [5/17]
Implicit conversion operator from a float array to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [6/17]
Implicit conversion operator from a string array to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [7/17]
Implicit conversion operator from a 16-bit integer array to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [8/17]
Implicit conversion operator from a 32-bit integer array to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [9/17]
Implicit conversion operator from a 64-bit integer array to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [10/17]
Implicit conversion operator from a boolean to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [11/17]
◆ operator Apache::Geode::Client::Serializable^() [12/17]
Implicit conversion operator from a character to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [13/17]
Implicit conversion operator from a double to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [14/17]
Implicit conversion operator from a float to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [15/17]
Implicit conversion operator from a string to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [16/17]
Implicit conversion operator from a 16-bit integer to a Serializable
.
◆ operator Apache::Geode::Client::Serializable^() [17/17]
Implicit conversion operator from a 32-bit integer to a Serializable
.
◆ operator Serializable^()
static Apache::Geode::Client::Serializable::operator Serializable^ |
( |
System::Int64 |
value | ) |
|
|
static |
Implicit conversion operator from a 64-bit integer to a Serializable
.
◆ RegisterPdxSerializer()
static void Apache::Geode::Client::Serializable::RegisterPdxSerializer |
( |
IPdxSerializer^ |
pdxSerializer | ) |
|
|
static |
Set the PDX serializer for the cache.
If this serializer is set, it will be consulted to see if it can serialize any domain classes which are added to the cache in portable data exchange format.
◆ RegisterPdxType()
static void Apache::Geode::Client::Serializable::RegisterPdxType |
( |
PdxTypeFactoryMethod^ |
creationMethod | ) |
|
|
static |
Register an instance factory method for a given type. This should be used when registering types that implement IPdxSerializable.
- Parameters
-
creationMethod | the creation function to register |
- Exceptions
-
◆ RegisterTypeGeneric()
Register an instance factory method for a given type.
This should be used when registering types that implement IGeodeSerializable.
- Parameters
-
creationMethod | the creation function to register |
- Exceptions
-
◆ SetPdxTypeMapper()
static void Apache::Geode::Client::Serializable::SetPdxTypeMapper |
( |
IPdxTypeMapper^ |
pdxTypeMapper | ) |
|
|
static |
Register an PdxTypeMapper to map the local types to pdx types
- Parameters
-
◆ ToData()
Serializes this native (C++) object.
- Parameters
-
output | the DataOutput object to use for serializing the object |
Implements Apache::Geode::Client::IGeodeSerializable.
Reimplemented in Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt32Array, apache::geode::client::CacheableInt32ArrayPtr, System::Int32, GeodeClassIds::CacheableInt32Array >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableDoubleArray, apache::geode::client::CacheableDoubleArrayPtr, Double, GeodeClassIds::CacheableDoubleArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt16Array, apache::geode::client::CacheableInt16ArrayPtr, System::Int16, GeodeClassIds::CacheableInt16Array >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableBytes, apache::geode::client::CacheableBytesPtr, Byte, GeodeClassIds::CacheableBytes >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CharArray, apache::geode::client::CharArrayPtr, Char, GeodeClassIds::CharArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableFloatArray, apache::geode::client::CacheableFloatArrayPtr, Single, GeodeClassIds::CacheableFloatArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::BooleanArray, apache::geode::client::BooleanArrayPtr, bool, GeodeClassIds::BooleanArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt64Array, apache::geode::client::CacheableInt64ArrayPtr, System::Int64, GeodeClassIds::CacheableInt64Array >, Apache::Geode::Client::CacheableString, Apache::Geode::Client::CacheableStringArray, Apache::Geode::Client::Internal::CacheableHashSetType< TYPEID, HSTYPE >, Apache::Geode::Client::Internal::CacheableHashSetType< Apache::Geode::Client::GeodeClassIds::CacheableLinkedHashSet, apache::geode::client::CacheableLinkedHashSet >, and Apache::Geode::Client::Internal::CacheableHashSetType< Apache::Geode::Client::GeodeClassIds::CacheableHashSet, apache::geode::client::CacheableHashSet >.
◆ ToString()
virtual String ^ Apache::Geode::Client::Serializable::ToString |
( |
| ) |
|
|
overridevirtual |
Return a string representation of the object.
It simply returns the string representation of the underlying native object by calling its toString()
function.
Implements Apache::Geode::Client::IGeodeSerializable.
Reimplemented in Apache::Geode::Client::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt32Array, apache::geode::client::CacheableInt32ArrayPtr, System::Int32, GeodeClassIds::CacheableInt32Array >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableDoubleArray, apache::geode::client::CacheableDoubleArrayPtr, Double, GeodeClassIds::CacheableDoubleArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt16Array, apache::geode::client::CacheableInt16ArrayPtr, System::Int16, GeodeClassIds::CacheableInt16Array >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableBytes, apache::geode::client::CacheableBytesPtr, Byte, GeodeClassIds::CacheableBytes >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CharArray, apache::geode::client::CharArrayPtr, Char, GeodeClassIds::CharArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableFloatArray, apache::geode::client::CacheableFloatArrayPtr, Single, GeodeClassIds::CacheableFloatArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::BooleanArray, apache::geode::client::BooleanArrayPtr, bool, GeodeClassIds::BooleanArray >, Apache::Geode::Client::CacheableBuiltinArray< apache::geode::client::CacheableInt64Array, apache::geode::client::CacheableInt64ArrayPtr, System::Int64, GeodeClassIds::CacheableInt64Array >, Apache::Geode::Client::CacheableString, Apache::Geode::Client::CacheableStringArray, Apache::Geode::Client::CacheableBuiltinKey< TNative, TManaged, TYPEID >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableFloat, Single, GeodeClassIds::CacheableFloat >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableInt32, System::Int32, GeodeClassIds::CacheableInt32 >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableDouble, Double, GeodeClassIds::CacheableDouble >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableBoolean, bool, GeodeClassIds::CacheableBoolean >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableInt64, System::Int64, GeodeClassIds::CacheableInt64 >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableInt16, System::Int16, GeodeClassIds::CacheableInt16 >, Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableWideChar, Char, GeodeClassIds::CacheableCharacter >, and Apache::Geode::Client::CacheableBuiltinKey< apache::geode::client::CacheableByte, Byte, GeodeClassIds::CacheableByte >.
◆ ClassId
virtual System:: UInt32 Apache::Geode::Client::Serializable::ClassId |
|
get |
Returns the classId of the instance being serialized.
This is used by deserialization to determine what instance type to create and deserialize into.
- Returns
- the classId
◆ ObjectSize
virtual System:: UInt32 Apache::Geode::Client::Serializable::ObjectSize |
|
get |
return the size of this object in bytes