Contents

createFromObject

Allocates an OSSerialization object with the serialized data of an object.

Declaration

static OSSerializationPtr createFromObject(OSObjectPtr const object);

Parameters

  • object:

    Object to serialize. Only certain DriverKit classes may be serialized: OSData, OSString, OSNumber, OSBoolean, OSArray, OSDictionary.

Return Value

NULL on failure, otherwise the allocated OSSerialization with reference count 1 to be released by the caller.

Discussion

Allocates an OSSerialization object with the serialized data of an object.

See Also

Creating a Serialization Object