~ubuntu-branches/ubuntu/gutsy/gnustep-base/gutsy

« back to all changes in this revision

Viewing changes to Headers/Foundation/NSSerialization.h

  • Committer: Bazaar Package Importer
  • Author(s): Hubert Chan
  • Date: 2006-12-12 13:31:22 UTC
  • mfrom: (2.1.9 feisty)
  • Revision ID: james.westby@ubuntu.com-20061212133122-34qt7qitn5c8psw8
Tags: 1.13.0-7
Revert conflict: with tendra; rename pl binary to plio, as per Section
10.1 of Policy. (really closes: #402558)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
   
21
21
   You should have received a copy of the GNU Library General Public
22
22
   License along with this library; if not, write to the Free
23
 
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
 
23
   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
24
   MA 02111 USA.
24
25
   */ 
25
26
 
26
27
#ifndef __NSSerialization_h_GNUSTEP_BASE_INCLUDE
68
69
 
69
70
/**
70
71
 *  <p>Serialize given property list (NSArray or NSDictionary plus limited
71
 
 *  contents) into byte array.</p>  <p><em>Deprecated in favor of
72
 
 *  [NSPropertyListSerialization+dataFromPropertyList:format:errorDescription:].</em></p>
 
72
 *  contents) into byte array.</p>
 
73
 *  <p><em>Deprecated in favor of
 
74
 *  [NSPropertyListSerialization+dataFromPropertyList:format:errorDescription:].
 
75
 *  </em></p>
73
76
 */
74
77
+ (NSData*) serializePropertyList: (id)propertyList;
75
78
 
76
79
/**
77
80
 *  <p>Serialize given property list (NSArray or NSDictionary plus limited
78
 
 *  contents) into given mutable byte array.</p>  <p><em>Deprecated in favor of
79
 
 *  [NSPropertyListSerialization+dataFromPropertyList:format:errorDescription:].</em></p>
80
 
 
 
81
 *  contents) into given mutable byte array.</p>
 
82
 *  <p><em>Deprecated in favor of
 
83
 *  [NSPropertyListSerialization+dataFromPropertyList:format:errorDescription:].
 
84
 *  </em></p>
81
85
 */
82
86
+ (void) serializePropertyList: (id)propertyList
83
87
                      intoData: (NSMutableData*)d;
124
128
 
125
129
/**
126
130
 *  Recover a property list (NSArray or NSDictionary plus limited
127
 
 *  contents) from a byte array.  <em>Deprecated in favor of
128
 
 *  [NSPropertyListSerialization+propertyListFromData:mutabilityOption:format:errorDescription:].</em>
 
131
 *  contents) from a byte array.
 
132
 *  <em>Deprecated in favor of
 
133
 *  [NSPropertyListSerialization
 
134
 *  +propertyListFromData:mutabilityOption:format:errorDescription:].</em>
129
135
 */
130
136
+ (id) deserializePropertyListFromData: (NSData*)data
131
137
                              atCursor: (unsigned int*)cursor
133
139
 
134
140
/**
135
141
 *  Recover a property list (NSArray or NSDictionary plus limited
136
 
 *  contents) from a byte array.  <em>Deprecated in favor of
137
 
 *  [NSPropertyListSerialization+propertyListFromData:mutabilityOption:format:errorDescription:].</em>
 
142
 *  contents) from a byte array.
 
143
 *  <em>Deprecated in favor of
 
144
 *  [NSPropertyListSerialization
 
145
 *  +propertyListFromData:mutabilityOption:format:errorDescription:].</em>
138
146
 */
139
147
+ (id) deserializePropertyListFromData: (NSData*)data
140
148
                     mutableContainers: (BOOL)flag;
145
153
 *  length, a proxy is substituted for the actual property list as long as the
146
154
 *  constituent objects of that property list are not accessed.
147
155
 *  <em>Deprecated in favor of
148
 
 *  [NSPropertyListSerialization+propertyListFromData:mutabilityOption:format:errorDescription:].</em>
 
156
 *  [NSPropertyListSerialization
 
157
 *  +propertyListFromData:mutabilityOption:format:errorDescription:].</em>
149
158
 */
150
159
+ (id) deserializePropertyListLazilyFromData: (NSData*)data
151
160
                                    atCursor: (unsigned*)cursor