Differences From Artifact [cd2db0fc50]:
- File
src/OFSHA1Hash.m
— part of check-in
[6b77a5dd8b]
at
2017-05-21 21:28:57
on branch trunk
— Prefix private methods with of_ instead of OF_
This matches Apple's style. (user: js, size: 4177) [annotate] [blame] [check-ins using]
To Artifact [f22e843ed9]:
- File
src/OFSHA1Hash.m
— part of check-in
[2f4e0df8be]
at
2017-10-17 00:33:37
on branch trunk
— Do not use implicit method return types
Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. (user: js, size: 4195) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
104 105 106 107 108 109 110 | } + (instancetype)cryptoHash { return [[[self alloc] init] autorelease]; } | | | | 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | } + (instancetype)cryptoHash { return [[[self alloc] init] autorelease]; } - (instancetype)init { self = [super init]; [self of_resetState]; return self; } - (void)dealloc { [self reset]; [super dealloc]; } - (id)copy { OFSHA1Hash *copy = [[OFSHA1Hash alloc] init]; memcpy(copy->_state, _state, sizeof(_state)); copy->_bits = _bits; memcpy(©->_buffer, &_buffer, sizeof(_buffer)); copy->_bufferLength = _bufferLength; |
︙ | ︙ |