26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#import "OFStream.h"
/*!
* @brief A stream that supports seeking.
*
* @note If you want to subclass this, override lowlevelSeekToOffset:,
* lowlevelSeekForwardWithOffset: and lowlevelSeekToOffsetRelativeToEnd:,
* but nothing else. 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 lowlevel prefix, you <i>will</i> 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
*/
|
|
|
|
|
|
|
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#import "OFStream.h"
/*!
* @brief A stream that supports seeking.
*
* @note If you want to subclass this, override lowlevelSeekToOffset:,
* lowlevelSeekForwardWithOffset: and lowlevelSeekToOffsetRelativeToEnd:,
* but nothing else, as they do the actual work. OFSeekableStream uses
* those and makes them work together with the caching of OFStream.
* If you override these methods without the lowlevel prefix, you
* <i>will</i> 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
*/
|