Insert the interface for NSMutableData.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@388 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1995-04-17 20:42:02 +00:00
parent 5d6cf8b2ef
commit 5b35d45ef5

View file

@ -84,4 +84,53 @@
@end
@interface NSMutableData : NSData
+ (id) dataWithCapacity: (unsigned int)numBytes;
+ (id) dataWithLength: (unsigned int)length;
- (id) initWithCapacity: (unsigned int)capacity;
- (id) initWithLength: (unsigned int)length;
// Adjusting Capacity
- (void) increaseLengthBy: (unsigned int)extraLength;
- (void) setLength: (unsigned int)length;
- (void*) mutableBytes;
// Appending Data
- (void) appendBytes: (const void*)bytes
length: (unsigned int)length;
- (void) appendData: (NSData*)other;
// Modifying Data
- (void) replaceBytesInRange: (NSRange)aRange
withBytes: (const void*)bytes;
- (void) resetBytesInRange: (NSRange)aRange;
// Serializing Data
- (void) serializeAlignedBytesLength: (unsigned int)length;
- (void) serializeDataAt: (const void*)data
ofObjCType: (const char*)type
context: (id <NSObjCTypeSerializationCallBack>)callback;
- (void) serializeInt: (int)value;
- (void) serializeInt: (int)value
atIndex: (unsigned int)location;
- (void) serializeInts: (int*)intBuffer
count: (unsigned int)numInts;
- (void) serializeInts: (int*)intBuffer
count: (unsigned int)numInts
atIndex: (unsigned int)location;
@end
/*
Local Variables:
mode: ObjC
End:
*/
#endif /* __NSData_h_OBJECTS_INCLUDE */