tuple_is_serializable_elemT_tuple_is_serializable_elemTupleIsSerializableElemTupleIsSerializableElem (Operator)
Name
tuple_is_serializable_elemT_tuple_is_serializable_elemTupleIsSerializableElemTupleIsSerializableElem
— Test if the elements of a tuple are serializable.
Signature
Description
tuple_is_serializabletuple_is_serializableTupleIsSerializableTupleIsSerializableTupleIsSerializable
checks if the elements of TupleTupleTupleTupletuple
can
be serialized with serialize_tupleserialize_tupleSerializeTupleSerializeTupleSerializeTuple
.
The output IsSerializableElemIsSerializableElemIsSerializableElemIsSerializableElemisSerializableElem
has the same length as the input
TupleTupleTupleTupletuple
and contains at each position either 0 if the
corresponding entry in TupleTupleTupleTupletuple
cannot be serialized, or
1 if it can.
A tuple element can be serialized if it is an integer, a string, a real value
or a serializable handle.
Handles that are already freed cannot be serialized.
To check the complete tuple for serializability, use
tuple_is_serializabletuple_is_serializableTupleIsSerializableTupleIsSerializableTupleIsSerializable
.
Execution Information
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
TupleTupleTupleTupletuple
(input_control) tuple(-array) →
HTupleHTupleHtuple (handle / integer / real / string) (HHandle / int / long / double / string) (HHandle / Hlong / double / HString) (handle / Hlong / double / char*)
Tuple to check for serializability.
IsSerializableElemIsSerializableElemIsSerializableElemIsSerializableElemisSerializableElem
(output_control) number(-array) →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Boolean value indicating if the input elements can be serialized.
Example (HDevelop)
* Serialize all serializable elements of a tuple
tuple_is_serializable_elem (Tuple, IsSerializableElem)
if (sum(IsSerializableElem[=]0)>0)
Tuple[find(IsSerializableElem,0)] := HNULL
endif
serialize_tuple (Tuple, SerializedItem)
Result
If the parameters are valid, the operator
tuple_is_serializabletuple_is_serializableTupleIsSerializableTupleIsSerializableTupleIsSerializable
returns the value 2 (H_MSG_TRUE).
Possible Successors
serialize_tupleserialize_tupleSerializeTupleSerializeTupleSerializeTuple
,
write_tuplewrite_tupleWriteTupleWriteTupleWriteTuple
Alternatives
tuple_is_serializabletuple_is_serializableTupleIsSerializableTupleIsSerializableTupleIsSerializable
See also
tuple_is_serializabletuple_is_serializableTupleIsSerializableTupleIsSerializableTupleIsSerializable
,
serialize_tupleserialize_tupleSerializeTupleSerializeTupleSerializeTuple
,
serialize_handleserialize_handleSerializeHandleSerializeHandleSerializeHandle
,
deserialize_tupledeserialize_tupleDeserializeTupleDeserializeTupleDeserializeTuple
,
deserialize_handledeserialize_handleDeserializeHandleDeserializeHandleDeserializeHandle
,
write_tuplewrite_tupleWriteTupleWriteTupleWriteTuple
Module
Foundation