Added [NSMutableData +data]

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2815 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-06-24 21:53:49 +00:00
parent 1a3d7230f0
commit 1ba095ed12

View file

@ -818,6 +818,11 @@ readContentsOfFile(NSString* path, void** buf, unsigned* len)
return (NSData*)NSAllocateObject([NSMutableDataMalloc class], 0, z);
}
+ (id) data
{
return [[[NSMutableDataMalloc alloc] initWithCapacity: 0] autorelease];
}
+ (id) dataWithBytes: (const void*)bytes
length: (unsigned int)length
{