Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Cyberdog Programmer's Kit / Part 3 - Cyberdog Reference
Chapter 7 - Classes and Methods / CyberItem


Unflatten

Reads this flattened Cyberdog item from a buffer.

long Unflatten (in Ptr buffer);
buffer
A pointer to a data buffer containing the flattened CyberItem object.
return value
The number of bytes read from the buffer.
DISCUSSION
This method should restore a Cyberdog item to its saved state from a flat representation stored in a buffer. The superclass implementation returns 0. This method is called by the CyberSession::CreateCyberItemFromSU method. The format of a flattened Cyberdog item is described in Table 7-1 (page 227).

If you subclass CyberItem, you must override this method. Your override must not call its inherited method; that is, your override method must implement this method's functionality completely.

SEE ALSO
The Flatten method (page 233).
The GetFlatSize method (page 236).
The CyberSession::CreateCyberItemFromSU method (page 355).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996