ObjFW  Diff

Differences From Artifact [ece356189b]:

To Artifact [44bcd8de89]:


24
25
26
27
28
29
30
31
32

33
34
35
36
37
38
39
40
41
42
43
44
#include <sys/types.h>

#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
 */







|
|
>
|
|
|
|
<







24
25
26
27
28
29
30
31
32
33
34
35
36
37

38
39
40
41
42
43
44
#include <sys/types.h>

#import "OFStream.h"

/**
 * \brief A stream that supports seeking.
 *
 * \note If you want to subclass this, override \ref lowlevelSeekToOffset:,
 *	 \ref lowlevelSeekForwardWithOffset: and
 *	 \ref 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
 */