mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Inital commit of partial implementation of MacOS-X compatible keyed archiving.
Experimental ... archiving is implemented aand tested for xml format output. Unarchiving is not yet implemented. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18450 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2d361f1ad9
commit
de07b9271b
12 changed files with 3927 additions and 30 deletions
|
@ -108,7 +108,6 @@ encodebase64(char *dst, const unsigned char *src, int length)
|
|||
dst[dIndex - 1] = '=';
|
||||
dst[dIndex - 2] = '=';
|
||||
}
|
||||
dst[dIndex] = '\0';
|
||||
return dIndex;
|
||||
}
|
||||
|
||||
|
@ -3155,10 +3154,9 @@ static NSCharacterSet *tokenSet = nil;
|
|||
{
|
||||
return [NSData data];
|
||||
}
|
||||
destlen = 4 * ((length - 1) / 3) + 5;
|
||||
destlen = 4 * ((length + 2) / 3);
|
||||
sBuf = (unsigned char*)[source bytes];
|
||||
dBuf = NSZoneMalloc(NSDefaultMallocZone(), destlen);
|
||||
dBuf[destlen - 1] = '\0';
|
||||
|
||||
destlen = encodebase64(dBuf, sBuf, length);
|
||||
|
||||
|
@ -4539,7 +4537,7 @@ static NSCharacterSet *tokenSet = nil;
|
|||
* and parameters as found after the colon in a mime Content-Type header.
|
||||
* </p>
|
||||
*/
|
||||
- (void) setContentType: (id)newType
|
||||
- (void) setContentType: (NSString *)newType
|
||||
{
|
||||
CREATE_AUTORELEASE_POOL(arp);
|
||||
GSMimeHeader *hdr = nil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue