Differences From 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]
To Artifact [314b165e30]:
- File src/OFDataArray.h — part of check-in [925bf9f8b1] at 2013-06-19 22:49:58 on branch trunk — Add -[OFDataArray dataArrayWithCapacity:]. (user: js, size: 9193) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
55 56 57 58 59 60 61 62 63 64 65 66 67 68 | * size. * * @param itemSize The size of a single element in the OFDataArray * @return A new autoreleased OFDataArray */ + (instancetype)dataArrayWithItemSize: (size_t)itemSize; /*! * @brief Creates a new OFDataArray with enough memory to hold the specified * number of items which all have the same specified size. * * @param itemSize The size of a single element in the OFDataArray * @param capacity The initial capacity for the OFDataArray * @return A new autoreleased OFDataArray | > > > > > > > > > | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | * size. * * @param itemSize The size of a single element in the OFDataArray * @return A new autoreleased OFDataArray */ + (instancetype)dataArrayWithItemSize: (size_t)itemSize; /*! * @brief Creates a new OFDataArray with enough memory to hold the specified * number of items which all have an item size of 1. * * @param capacity The initial capacity for the OFDataArray * @return A new autoreleased OFDataArray */ + (instancetype)dataArrayWithCapacity: (size_t)capacity; /*! * @brief Creates a new OFDataArray with enough memory to hold the specified * number of items which all have the same specified size. * * @param itemSize The size of a single element in the OFDataArray * @param capacity The initial capacity for the OFDataArray * @return A new autoreleased OFDataArray |
︙ | ︙ | |||
111 112 113 114 115 116 117 118 119 120 121 122 123 124 | * same size. * * @param itemSize The size of a single element in the OFDataArray * @return An initialized OFDataArray */ - initWithItemSize: (size_t)itemSize; /*! * @brief Initializes an already allocated OFDataArray with enough memory to * hold the specified number of items which all have the same specified * size. * * @param itemSize The size of a single element in the OFDataArray * @param capacity The initial capacity for the OFDataArray | > > > > > > > > > | 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | * same size. * * @param itemSize The size of a single element in the OFDataArray * @return An initialized OFDataArray */ - initWithItemSize: (size_t)itemSize; /*! * @brief Initializes an already allocated OFDataArray with enough memory to * hold the specified number of items which all have an item size of 1. * * @param capacity The initial capacity for the OFDataArray * @return An initialized OFDataArray */ - initWithCapacity: (size_t)capacity; /*! * @brief Initializes an already allocated OFDataArray with enough memory to * hold the specified number of items which all have the same specified * size. * * @param itemSize The size of a single element in the OFDataArray * @param capacity The initial capacity for the OFDataArray |
︙ | ︙ |