Operator Reference

tuple_is_serializableT_tuple_is_serializableTupleIsSerializableTupleIsSerializabletuple_is_serializable (Operator)

tuple_is_serializableT_tuple_is_serializableTupleIsSerializableTupleIsSerializabletuple_is_serializable — Test if a tuple is serializable.

Signature

tuple_is_serializable( : : Tuple : IsSerializable)

Herror T_tuple_is_serializable(const Htuple Tuple, Htuple* IsSerializable)

void TupleIsSerializable(const HTuple& Tuple, HTuple* IsSerializable)

HTuple HTuple::TupleIsSerializable() const

Hlong HHandle::TupleIsSerializable() const

static void HOperatorSet.TupleIsSerializable(HTuple tuple, out HTuple isSerializable)

HTuple HTuple.TupleIsSerializable()

int HHandle.TupleIsSerializable()

def tuple_is_serializable(tuple: HTupleType) -> int

Description

tuple_is_serializabletuple_is_serializableTupleIsSerializableTupleIsSerializabletuple_is_serializable checks if TupleTupleTupletupletuple can be serialized with serialize_tupleserialize_tupleSerializeTupleSerializeTupleserialize_tuple. If yes, 1 is returned in IsSerializableIsSerializableIsSerializableisSerializableis_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_elemTupleIsSerializableElemTupleIsSerializableElemtuple_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

TupleTupleTupletupletuple (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.

IsSerializableIsSerializableIsSerializableisSerializableis_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_serializableTupleIsSerializableTupleIsSerializabletuple_is_serializable returns the value 2 ( H_MSG_TRUE) .

Possible Successors

serialize_tupleserialize_tupleSerializeTupleSerializeTupleserialize_tuple, write_tuplewrite_tupleWriteTupleWriteTuplewrite_tuple

Alternatives

tuple_is_serializable_elemtuple_is_serializable_elemTupleIsSerializableElemTupleIsSerializableElemtuple_is_serializable_elem

See also

tuple_is_serializable_elemtuple_is_serializable_elemTupleIsSerializableElemTupleIsSerializableElemtuple_is_serializable_elem, serialize_tupleserialize_tupleSerializeTupleSerializeTupleserialize_tuple, serialize_handleserialize_handleSerializeHandleSerializeHandleserialize_handle, deserialize_tupledeserialize_tupleDeserializeTupleDeserializeTupledeserialize_tuple, deserialize_handledeserialize_handleDeserializeHandleDeserializeHandledeserialize_handle, write_tuplewrite_tupleWriteTupleWriteTuplewrite_tuple

Module

Foundation