mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Class cluster and encoding/decoding fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7825 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1770f4dc78
commit
65241c052d
12 changed files with 276 additions and 178 deletions
|
@ -1913,23 +1913,11 @@ failure:
|
|||
return self;
|
||||
}
|
||||
|
||||
/* NSCoding */
|
||||
|
||||
- (Class) classForArchiver
|
||||
{
|
||||
return dataMalloc; /* Will not be static data when decoded. */
|
||||
}
|
||||
|
||||
- (Class) classForCoder
|
||||
{
|
||||
return dataMalloc; /* Will not be static data when decoded. */
|
||||
}
|
||||
|
||||
- (Class) classForPortCoder
|
||||
{
|
||||
return dataMalloc; /* Will not be static data when decoded. */
|
||||
}
|
||||
|
||||
/* Basic methods */
|
||||
|
||||
- (const void*) bytes
|
||||
|
@ -2510,21 +2498,11 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
return (NSData*)NSAllocateObject(mutableDataMalloc, 0, z);
|
||||
}
|
||||
|
||||
- (Class) classForArchiver
|
||||
{
|
||||
return mutableDataMalloc;
|
||||
}
|
||||
|
||||
- (Class) classForCoder
|
||||
{
|
||||
return mutableDataMalloc;
|
||||
}
|
||||
|
||||
- (Class) classForPortCoder
|
||||
{
|
||||
return mutableDataMalloc;
|
||||
}
|
||||
|
||||
- (id) copy
|
||||
{
|
||||
return [[dataMalloc allocWithZone: NSDefaultMallocZone()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue