OSUnserialize.h Reference

Declared in
OSUnserialize.h

Overview

This header declares the OSUnserializeXML function.

Included Headers

Functions

See the Overview section above for header-level documentation.

OSUnserializeXML(const char *, OSString **)

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

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.

OSUnserializeXML(const char *, size_t, OSString **)

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

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.