Differences From Artifact [7c51ea7ed3]:
- File
src/OFSeekableStream.m
— part of check-in
[d101b6f8b4]
at
2013-08-12 13:26:40
on branch trunk
— Fix OFSeekableStream.
-[seekToOffset:whence:] now works correctly when whence is SEEK_CUR.
Additionally, the new offset is returned now. (user: js, size: 1110) [annotate] [blame] [check-ins using]
To Artifact [075ee49105]:
- File src/OFSeekableStream.m — part of check-in [35dafd5c57] at 2013-11-23 01:12:40 on branch trunk — Add OF_INVALID_INIT_METHOD. (user: js, size: 1325) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #include <stdlib.h> #include <stdio.h> #import "OFSeekableStream.h" @implementation OFSeekableStream - (off_t)lowlevelSeekToOffset: (off_t)offset whence: (int)whence { [self doesNotRecognizeSelector: _cmd]; abort(); } | > > > > > > > > > > > > > > > | 18 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 | #include <stdlib.h> #include <stdio.h> #import "OFSeekableStream.h" @implementation OFSeekableStream - init { if (object_getClass(self) == [OFSeekableStream class]) { @try { [self doesNotRecognizeSelector: _cmd]; abort(); } @catch (id e) { [self release]; @throw e; } } return [super init]; } - (off_t)lowlevelSeekToOffset: (off_t)offset whence: (int)whence { [self doesNotRecognizeSelector: _cmd]; abort(); } |
︙ | ︙ |