@@ -40,10 +40,11 @@ OFSerialization, OFMessagePackRepresentation> { unsigned char *_items; size_t _count, _itemSize; bool _freeWhenDone; + OFData *_parentData; } /*! * @brief The size of a single item in the OFData in bytes. */ @@ -277,10 +278,18 @@ * @param index The number of the item to return * @return The specified item of the OFData */ - (const void *)itemAtIndex: (size_t)index OF_RETURNS_INNER_POINTER; +/*! + * @brief Returns the data in the specified range as a new OFData. + * + * @param range The range of the data for the new data + * @return The data in the specified range as a new OFData + */ +- (OFData *)subdataWithRange: (of_range_t)range; + /*! * @brief Returns the range of the data. * * @param data The data to search for * @param options Options modifying search behavior.@n