387
388
389
390
391
392
393
394
395
396
397
398
399
400
|
return hash;
}
- (OFString*)stringByBase64Encoding
{
return of_base64_encode(data, count * itemSize);
}
@end
@implementation OFBigDataArray
- (void)addItem: (const void*)item
{
size_t newSize, lastPageByte;
|
>
>
>
>
>
>
>
>
>
>
>
>
>
|
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
|
return hash;
}
- (OFString*)stringByBase64Encoding
{
return of_base64_encode(data, count * itemSize);
}
- (void)writeToFile: (OFString*)path
{
OFFile *file = [[OFFile alloc] initWithPath: path
mode: @"wb"];
@try {
[file writeNBytes: count * itemSize
fromBuffer: data];
} @finally {
[file release];
}
}
@end
@implementation OFBigDataArray
- (void)addItem: (const void*)item
{
size_t newSize, lastPageByte;
|