Differences From Artifact [4c0ad468a8]:
- File src/OFHash.m — part of check-in [d43eb177bc] at 2011-09-19 12:34:21 on branch trunk — BOOL naming conventions. (user: js, size: 1179) [annotate] [blame] [check-ins using]
To Artifact [a4b7ddc1da]:
- File
src/OFHash.m
— part of check-in
[e1e7ffa903]
at
2011-09-22 23:25:42
on branch trunk
— Exceptions are now autoreleased.
This is safe as an "exception loop" can't happen, since if allocating
an exception fails, it throws an OFAllocFailedException which is
preallocated and can always be thrown.So, the worst case would be that an autorelease of an exception fails,
triggering an OFOutOfMemoryException for which there is no memory,
resulting in an OFAllocFailedException to be thrown. (user: js, size: 1199) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
19 20 21 22 23 24 25 | #import "OFHash.h" #import "OFNotImplementedException.h" @implementation OFHash + (size_t)digestSize { | | | | | | | | | | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | #import "OFHash.h" #import "OFNotImplementedException.h" @implementation OFHash + (size_t)digestSize { @throw [OFNotImplementedException exceptionWithClass: self selector: _cmd]; } + (size_t)blockSize { @throw [OFNotImplementedException exceptionWithClass: self selector: _cmd]; } - (void)updateWithBuffer: (const char*)buffer length: (size_t)length { @throw [OFNotImplementedException exceptionWithClass: isa selector: _cmd]; } - (uint8_t*)digest { @throw [OFNotImplementedException exceptionWithClass: isa selector: _cmd]; } - (BOOL)isCalculated { return calculated; } @end |