Mac Developer Library

Developer

OSUnserialize.h Reference

Options
Deployment Target:

On This Page

OSUnserialize.h Reference

This header declares the OSUnserializeXML function.

Included Headers

Functions

  • Recreates an OSContainer object from its previously serialized OSContainer class instance data.

    Declaration

    Objective-C

    extern "C++" OSObject * OSUnserializeXML( const char *buffer, OSString ** errorString = 0);

    Parameters

    buffer

    A buffer containing nul-terminated XML data representing the object to be recreated.

    errorString

    If non-NULL, and the XML parser finds an error in buffer, *errorString indicates the line number and type of error encountered.

    Return Value

    The recreated object, or NULL on failure.

    Discussion

    Not safe to call in a primary interrupt handler.

    Import Statement

  • Recreates an OSContainer object from its previously serialized OSContainer class instance data.

    Declaration

    Objective-C

    extern "C++" OSObject * OSUnserializeXML( const char *buffer, size_t bufferSize, OSString ** errorString = 0);

    Parameters

    buffer

    A buffer containing nul-terminated XML data representing the object to be recreated.

    bufferSize

    The size of the block of memory. The function never scans beyond the first bufferSize bytes.

    errorString

    If non-NULL, and the XML parser finds an error in buffer, *errorString indicates the line number and type of error encountered.

    Return Value

    The recreated object, or NULL on failure.

    Discussion

    Not safe to call in a primary interrupt handler.

    Import Statement