Differences From Artifact [d1decb9e79]:
- File
src/OFData.h
— part of check-in
[f3ccf14461]
at
2017-10-29 21:58:14
on branch trunk
— Convert methods to properties where appropriate
This improves Swift compatibility. (user: js, size: 8784) [annotate] [blame] [check-ins using]
To Artifact [bda35b67de]:
- File src/OFData.h — part of check-in [cc3ad3ddd3] at 2017-11-18 18:50:50 on branch trunk — Documentation: Use @brief for all properties (user: js, size: 8834) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
36 37 38 39 40 41 42 | { unsigned char *_items; size_t _count, _itemSize; bool _freeWhenDone; } /*! | | | | < | | | | | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | { unsigned char *_items; size_t _count, _itemSize; bool _freeWhenDone; } /*! * @brief The size of a single item in the OFData in bytes. */ @property (readonly, nonatomic) size_t itemSize; /*! * @brief The number of items in the OFData. */ @property (readonly, nonatomic) size_t count; /*! * @brief All elements of the OFData as a C array. * * @warning The pointer is only valid until the OFData is changed! */ @property (readonly, nonatomic) const void *items OF_RETURNS_INNER_POINTER; /*! * @brief The first item of the OFData or `NULL`. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) const void *firstItem OF_RETURNS_INNER_POINTER; /*! * @brief The last item of the OFData or `NULL`. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) const void *lastItem OF_RETURNS_INNER_POINTER; /*! * @brief The string representation of the data. * * The string representation is a hex dump of the data, grouped by itemSize * bytes. */ @property (readonly, nonatomic) OFString *stringRepresentation; /*! * @brief A string containing the data in Base64 encoding. */ @property (readonly, nonatomic) OFString *stringByBase64Encoding; /*! * @brief Creates a new OFData with the specified `count` items of size 1. * * @param items The items to store in the OFData |
︙ | ︙ |