tuple_is_serializableT_tuple_is_serializableTupleIsSerializableTupleIsSerializabletuple_is_serializable (Operator)
Name
tuple_is_serializableT_tuple_is_serializableTupleIsSerializableTupleIsSerializabletuple_is_serializable
— Test if a tuple is serializable.
Signature
def tuple_is_serializable(tuple: HTupleType) -> int
Description
tuple_is_serializabletuple_is_serializableTupleIsSerializableTupleIsSerializableTupleIsSerializabletuple_is_serializable
checks if TupleTupleTupleTupletupletuple
can be serialized with
serialize_tupleserialize_tupleSerializeTupleSerializeTupleSerializeTupleserialize_tuple
.
If yes, 1 is returned in IsSerializableIsSerializableIsSerializableIsSerializableisSerializableis_serializable
.
Otherwise, 0 is returned.
A tuple can be serialized if it contains only integers, strings, reals, and
serializable handles.
Handles that are already freed cannot be serialized.
To check all elements of a tuple individually, use
tuple_is_serializable_elemtuple_is_serializable_elemTupleIsSerializableElemTupleIsSerializableElemTupleIsSerializableElemtuple_is_serializable_elem
.
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
TupleTupleTupleTupletupletuple
(input_control) tuple(-array) →
HTupleHTupleTypeHTupleHtuple (handle / integer / real / string) (HHandle / int / long / double / string) (HHandle / Hlong / double / HString) (handle / Hlong / double / char*)
Tuple to check for serializability.
IsSerializableIsSerializableIsSerializableIsSerializableisSerializableis_serializable
(output_control) number →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Boolean value indicating if the input can be serialized.
Result
If the parameters are valid, the operator
tuple_is_serializabletuple_is_serializableTupleIsSerializableTupleIsSerializableTupleIsSerializabletuple_is_serializable
returns the value TRUE.
Possible Successors
serialize_tupleserialize_tupleSerializeTupleSerializeTupleSerializeTupleserialize_tuple
,
write_tuplewrite_tupleWriteTupleWriteTupleWriteTuplewrite_tuple
Alternatives
tuple_is_serializable_elemtuple_is_serializable_elemTupleIsSerializableElemTupleIsSerializableElemTupleIsSerializableElemtuple_is_serializable_elem
See also
tuple_is_serializable_elemtuple_is_serializable_elemTupleIsSerializableElemTupleIsSerializableElemTupleIsSerializableElemtuple_is_serializable_elem
,
serialize_tupleserialize_tupleSerializeTupleSerializeTupleSerializeTupleserialize_tuple
,
serialize_handleserialize_handleSerializeHandleSerializeHandleSerializeHandleserialize_handle
,
deserialize_tupledeserialize_tupleDeserializeTupleDeserializeTupleDeserializeTupledeserialize_tuple
,
deserialize_handledeserialize_handleDeserializeHandleDeserializeHandleDeserializeHandledeserialize_handle
,
write_tuplewrite_tupleWriteTupleWriteTupleWriteTuplewrite_tuple
Module
Foundation