mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
1a3d7230f0
commit
1ba095ed12
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue