NSFileWrapper serializedRepresentation
NSFileWrapper serializedRepresentation
- Subject: NSFileWrapper serializedRepresentation
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 04 Apr 2016 15:18:47 +0700
NSFileWrapper *fileWrapper = … some Folder …
NSData *dataRaw = fileWrapper.serializedRepresentation;
NSDate *dataCompressed = … COMPRESSION_LZFSE …
When I do this in OS X 10.11.4 dataRaw = 30380898, dataCompressed = 5638680 ( 18.6 %)
But in the iOS Simulator 9.3.1: dataRaw = 28206422, dataCompressed = 4282602 ( 15.2 %)
That is OS X (10.11.4) makes an 8 % bigger FileWrapper compared to iOS (9.3.1), which also compresses less well → 32% overhead.
Is there a method like: serializedRepresentationInTheNeatAndLean_iOS_way ?
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden