Differences From Artifact [280841ab34]:
- File
src/OFSHA224Or256Hash.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: 5184) [annotate] [blame] [check-ins using]
To Artifact [223f1ca854]:
- File
src/OFSHA224Or256Hash.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: 5202) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
126 127 128 129 130 131 132 | } + (instancetype)cryptoHash { return [[[self alloc] init] autorelease]; } | | | 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | } + (instancetype)cryptoHash { return [[[self alloc] init] autorelease]; } - (instancetype)init { self = [super init]; @try { if ([self class] == [OFSHA224Or256Hash class]) { [self doesNotRecognizeSelector: _cmd]; abort(); |
︙ | ︙ | |||
152 153 154 155 156 157 158 | - (void)dealloc { [self reset]; [super dealloc]; } | | | 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | - (void)dealloc { [self reset]; [super dealloc]; } - (id)copy { OFSHA224Or256Hash *copy = [[[self class] alloc] init]; memcpy(copy->_state, _state, sizeof(_state)); copy->_bits = _bits; memcpy(©->_buffer, &_buffer, sizeof(_buffer)); copy->_bufferLength = _bufferLength; |
︙ | ︙ |