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
54
|
* Those are not defined in the headers, but do the actual work.
* OFSeekableStream uses those and makes them work together with the caching of
* OFStream. If you override these methods without the _ prefix, you *WILL*
* break caching, get broken results and seek to the wrong position!
*/
@interface OFSeekableStream: OFStream
/**
* Seeks to the specified absolute offset.
*
* \param offset The offset in bytes
*/
- (void)seekToOffset: (off_t)offset;
/**
* Seeks to the specified offset, relative to the current location.
*
* \param offset The offset relative to the current location
* \return The absolute offset
*/
- (off_t)seekForwardWithOffset: (off_t)offset;
/**
* Seeks to the specified offset, relative to the end of the stream.
*
* \param offset The offset relative to the end of the stream
* \return The absolute offset
*/
- (off_t)seekToOffsetRelativeToEnd: (off_t)offset;
@end
|
|
|
|
|
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
54
|
* Those are not defined in the headers, but do the actual work.
* OFSeekableStream uses those and makes them work together with the caching of
* OFStream. If you override these methods without the _ prefix, you *WILL*
* break caching, get broken results and seek to the wrong position!
*/
@interface OFSeekableStream: OFStream
/**
* \brief Seeks to the specified absolute offset.
*
* \param offset The offset in bytes
*/
- (void)seekToOffset: (off_t)offset;
/**
* \brief Seeks to the specified offset, relative to the current location.
*
* \param offset The offset relative to the current location
* \return The absolute offset
*/
- (off_t)seekForwardWithOffset: (off_t)offset;
/**
* \brief Seeks to the specified offset, relative to the end of the stream.
*
* \param offset The offset relative to the end of the stream
* \return The absolute offset
*/
- (off_t)seekToOffsetRelativeToEnd: (off_t)offset;
@end
|