Differences From Artifact [b9fe1f5814]:
- File src/OFDataArray.h — part of check-in [23c798d4f1] at 2013-02-21 19:35:34 on branch trunk — Add support for generating BinaryPack. (user: js, size: 8588) [annotate] [blame] [check-ins using]
To Artifact [76850fcca7]:
- File
src/OFDataArray.h
— part of check-in
[cba771824e]
at
2013-06-19 19:14:11
on branch trunk
— Implement the new MessagePack specification.
No support for extensions yet.
This obsoletes BinaryPack. (user: js, size: 8591) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
12 13 14 15 16 17 18 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFObject.h" #import "OFSerialization.h" | | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFObject.h" #import "OFSerialization.h" #import "OFMessagePackRepresentation.h" @class OFString; @class OFURL; /*! * @brief A class for storing arbitrary data in an array. * * If you plan to store large hunks of data, you should consider using * OFBigDataArray, which allocates the memory in pages rather than in bytes. * * For security reasons, serialization and deserialization is only implemented * for OFDataArrays with item size 1. */ @interface OFDataArray: OFObject <OFCopying, OFComparing, OFSerialization, OFMessagePackRepresentation> { uint8_t *_items; size_t _count, _itemSize, _capacity; } #ifdef OF_HAVE_PROPERTIES @property (readonly) void *items; |
︙ | ︙ | |||
303 304 305 306 307 308 309 | @interface OFBigDataArray: OFDataArray { size_t _size; } @end #import "OFDataArray+Hashing.h" | | | 303 304 305 306 307 308 309 310 | @interface OFBigDataArray: OFDataArray { size_t _size; } @end #import "OFDataArray+Hashing.h" #import "OFDataArray+MessagePackValue.h" |