ObjFW  Check-in [14117d73d7]

Overview
Comment:OFHash: Remove method obsoleted by property
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 14117d73d795ed9ba3572b5f17d9967d0d7a03d81ae91ba8365ecbf64f8a040e
User & Date: js on 2016-05-22 16:14:19
Other Links: manifest | tags
Context
2016-05-22
17:38
Add -[OFString octalValue] check-in: 6ea8c2f107 user: js tags: trunk
16:14
OFHash: Remove method obsoleted by property check-in: 14117d73d7 user: js tags: trunk
14:50
configure: Check for buggy -Wunused-property-ivar check-in: ec429f2476 user: js tags: trunk
Changes

Modified src/OFHash.h from [c2e62731be] to [360d51ea54].

20
21
22
23
24
25
26



27
28
29
30
31
32
33

/*!
 * @protocol OFHash OFHash.h ObjFW/OFHash.h
 *
 * @brief A protocol for classes providing hash functions.
 */
@protocol OFHash <OFObject>



@property (readonly, getter=isCalculated) bool calculated;

/*!
 * @brief Creates a new hash.
 *
 * @return A new autoreleased OFHash
 */







>
>
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

/*!
 * @protocol OFHash OFHash.h ObjFW/OFHash.h
 *
 * @brief A protocol for classes providing hash functions.
 */
@protocol OFHash <OFObject>
/*!
 * A boolean whether the hash has already been calculated.
 */
@property (readonly, getter=isCalculated) bool calculated;

/*!
 * @brief Creates a new hash.
 *
 * @return A new autoreleased OFHash
 */
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
 * The size of the buffer depends on the hash used. The buffer is part of the
 * receiver's memory pool.
 *
 * @return A buffer containing the hash
 */
- (const uint8_t*)digest OF_RETURNS_INNER_POINTER;

/*!
 * @brief Returns a boolean whether the hash has already been calculated.
 *
 * @return A boolean whether the hash has already been calculated
 */
- (bool)isCalculated;

/*!
 * @brief Resets all state so that a new hash can be calculated.
 *
 * @warning This invalidates any pointer previously returned by @ref digest. If
 *	    you are still interested in the previous digest, you need to memcpy
 *	    it yourself before calling @ref reset!
 */
- (void)reset;
@end

OF_ASSUME_NONNULL_END







<
<
<
<
<
<
<











65
66
67
68
69
70
71







72
73
74
75
76
77
78
79
80
81
82
 * The size of the buffer depends on the hash used. The buffer is part of the
 * receiver's memory pool.
 *
 * @return A buffer containing the hash
 */
- (const uint8_t*)digest OF_RETURNS_INNER_POINTER;








/*!
 * @brief Resets all state so that a new hash can be calculated.
 *
 * @warning This invalidates any pointer previously returned by @ref digest. If
 *	    you are still interested in the previous digest, you need to memcpy
 *	    it yourself before calling @ref reset!
 */
- (void)reset;
@end

OF_ASSUME_NONNULL_END