21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# define __STDC_CONSTANT_MACROS
#endif
#include <sys/types.h>
#import "OFStream.h"
#if defined(_WIN32)
typedef __int64 of_offset_t;
#elif defined(__ANDROID__)
typedef long long of_offset_t;
#elif defined(OF_HAVE_OFF64_T)
typedef off64_t of_offset_t;
#else
|
>
>
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# define __STDC_CONSTANT_MACROS
#endif
#include <sys/types.h>
#import "OFStream.h"
OF_ASSUME_NONNULL_BEGIN
#if defined(_WIN32)
typedef __int64 of_offset_t;
#elif defined(__ANDROID__)
typedef long long of_offset_t;
#elif defined(OF_HAVE_OFF64_T)
typedef off64_t of_offset_t;
#else
|
80
81
82
83
84
85
86
|
* `SEEK_CUR` | Seek to the current location + offset
* `SEEK_END` | Seek to the end of the stream + offset
* @return The new offset from the start of the file
*/
- (of_offset_t)lowlevelSeekToOffset: (of_offset_t)offset
whence: (int)whence;
@end
|
>
>
|
82
83
84
85
86
87
88
89
90
|
* `SEEK_CUR` | Seek to the current location + offset
* `SEEK_END` | Seek to the end of the stream + offset
* @return The new offset from the start of the file
*/
- (of_offset_t)lowlevelSeekToOffset: (of_offset_t)offset
whence: (int)whence;
@end
OF_ASSUME_NONNULL_END
|