74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
/**
* @brief Seeks to the specified offset.
*
* @param offset The offset in bytes
* @param whence From where to seek.
* @return The new offset form the start of the file
*/
- (OFStreamOffset)seekToOffset: (OFStreamOffset)offset
whence: (OFSeekWhence)whence;
/**
* @brief Seek the stream on the lowlevel.
*
* @warning Do not call this directly!
*
* @note Override this method with your actual seek implementation when
* subclassing!
*
* @param offset The offset to seek to
* @param whence From where to seek.
* @return The new offset from the start of the file
*/
- (OFStreamOffset)lowlevelSeekToOffset: (OFStreamOffset)offset
whence: (OFSeekWhence)whence;
@end
OF_ASSUME_NONNULL_END
|
>
>
>
>
|
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
/**
* @brief Seeks to the specified offset.
*
* @param offset The offset in bytes
* @param whence From where to seek.
* @return The new offset form the start of the file
* @throw OFSeekFailedException Seeking failed
* @throw OFNotOpenException The stream is not open
*/
- (OFStreamOffset)seekToOffset: (OFStreamOffset)offset
whence: (OFSeekWhence)whence;
/**
* @brief Seek the stream on the lowlevel.
*
* @warning Do not call this directly!
*
* @note Override this method with your actual seek implementation when
* subclassing!
*
* @param offset The offset to seek to
* @param whence From where to seek.
* @return The new offset from the start of the file
* @throw OFSeekFailedException Seeking failed
* @throw OFNotOpenException The stream is not open
*/
- (OFStreamOffset)lowlevelSeekToOffset: (OFStreamOffset)offset
whence: (OFSeekWhence)whence;
@end
OF_ASSUME_NONNULL_END
|