Differences From Artifact [13775b9538]:
- File
src/OFSeekableStream.m
— part of check-in
[37db8f0fb3]
at
2010-04-17 22:27:17
on branch trunk
— New ivar naming convention.
ivars are now named like this: thisIsAnIVar. If an accessor exists for
the ivar, the ivar is named like the accessor. This is required for
@property to work. (user: js, size: 1367) [annotate] [blame] [check-ins using]
To Artifact [6733c391eb]:
- File
src/OFSeekableStream.m
— part of check-in
[c3c2bcca46]
at
2010-09-20 11:26:00
on branch trunk
— Better API for the writte buffer of streams.
Can now be disabled without flushing and then be flushed later. (user: js, size: 1289) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
29 30 31 32 33 34 35 | { @throw [OFNotImplementedException newWithClass: isa selector: _cmd]; } - (void)seekToOffset: (off_t)offset { | < < < | 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 54 55 56 57 58 59 60 61 62 63 64 65 66 | { @throw [OFNotImplementedException newWithClass: isa selector: _cmd]; } - (void)seekToOffset: (off_t)offset { [self _seekToOffset: offset]; [self freeMemory: cache]; cache = NULL; cacheLen = 0; } - (off_t)seekForwardWithOffset: (off_t)offset { off_t ret; ret = [self _seekForwardWithOffset: offset - cacheLen]; [self freeMemory: cache]; cache = NULL; cacheLen = 0; return ret; } - (off_t)seekToOffsetRelativeToEnd: (off_t)offset { off_t ret; ret = [self _seekToOffsetRelativeToEnd: offset]; [self freeMemory: cache]; cache = NULL; cacheLen = 0; return ret; |
︙ | ︙ |