~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to Headers/Foundation/NSCoder.h

Tags: upstream-1.20.0
ImportĀ upstreamĀ versionĀ 1.20.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 *  well.
58
58
 */
59
59
- (void) encodeArrayOfObjCType: (const char*)type
60
 
                         count: (unsigned)count
 
60
                         count: (NSUInteger)count
61
61
                            at: (const void*)array;
62
62
 
63
63
/**
72
72
/**
73
73
 *  Stores bytes directly into archive.  
74
74
 */
75
 
- (void) encodeBytes: (void*)d length: (unsigned)l;
 
75
- (void) encodeBytes: (void*)d length: (NSUInteger)l;
76
76
 
77
77
/**
78
78
 *  Encode object if it is/will be encoded unconditionally by this coder,
141
141
 *  well.  Objects will be retained and you must release them.
142
142
 */
143
143
- (void) decodeArrayOfObjCType: (const char*)type
144
 
                         count: (unsigned)count
 
144
                         count: (NSUInteger)count
145
145
                            at: (void*)address;
146
146
 
147
147
/**
148
148
 *  Retrieve bytes directly from archive.
149
149
 */
150
 
- (void*) decodeBytesWithReturnedLength: (unsigned*)l;
 
150
- (void*) decodeBytesWithReturnedLength: (NSUInteger*)l;
151
151
 
152
152
/**
153
153
 *  Decode an instance of [NSData].
228
228
/*
229
229
 * Include GSConfig.h for typedefs/defines of uint8_t, int32_t int64_t
230
230
 */
231
 
#include <GNUstepBase/GSConfig.h>
 
231
#import <GNUstepBase/GSConfig.h>
232
232
 
233
233
 
234
234
/** <override-subclass />
257
257
 * -encodeBytes:length:forKey:
258
258
 */
259
259
- (const uint8_t*) decodeBytesForKey: (NSString*)aKey
260
 
                      returnedLength: (unsigned*)alength;
 
260
                      returnedLength: (NSUInteger*)alength;
261
261
 
262
262
/** <override-subclass />
263
263
 * Returns a double value associated with aKey.  This value must previously
313
313
 * and associates the encoded value with aKey.
314
314
 */
315
315
- (void) encodeBytes: (const uint8_t*)aPointer
316
 
              length: (unsigned)length
 
316
              length: (NSUInteger)length
317
317
              forKey: (NSString*)aKey;
318
318
 
319
319
/** <override-subclass />
333
333
- (void) encodeFloat: (float)aFloat forKey: (NSString*)aKey;
334
334
 
335
335
/** <override-subclass />
336
 
 * Encodes anInteger and associates the encoded value with aKey.
 
336
 * Encodes an int and associates the encoded value with aKey.
337
337
 */
338
338
- (void) encodeInt: (int)anInteger forKey: (NSString*)aKey;
339
339
 
340
340
/** <override-subclass />
341
 
 * Encodes anInteger and associates the encoded value with aKey.
 
341
 * Encodes 32 bit integer and associates the encoded value with aKey.
342
342
 */
343
343
- (void) encodeInt32: (int32_t)anInteger forKey: (NSString*)aKey;
344
344
 
345
345
/** <override-subclass />
346
 
 * Encodes anInteger and associates the encoded value with aKey.
 
346
 * Encodes a 64 bit integer and associates the encoded value with aKey.
347
347
 */
348
348
- (void) encodeInt64: (int64_t)anInteger forKey: (NSString*)aKey;
349
349
 
355
355
 
356
356
#if OS_API_VERSION(100500, GS_API_LATEST)
357
357
/** <override-subclass />
358
 
 * Encodes anInteger and associates the encoded value with key.
 
358
 * Encodes an NSInteger and associates the encoded value with key.
359
359
 */
360
360
 
361
361
- (void) encodeInteger: (NSInteger)anInteger forKey: (NSString *)key;
362
362
/** <override-subclass />
363
 
 * Decodes an integer associated with the key.
 
363
 * Decodes an NSInteger associated with the key.
364
364
 */
365
365
- (NSInteger) decodeIntegerForKey: (NSString *)key;
366
366
#endif