12#define ENABLE_INTSAFE_SIGNED_FUNCTIONS
38 if (!
stream.has_any_buffer())
65 int const fh =
stream.lowio_handle();
76 if (lowio_position < 0)
95 bool const seek_is_within_buffer = minimum_reverse_seek <=
offset &&
offset <= maximum_forward_seek;
96 if (!seek_is_within_buffer)
115 __crt_cached_ptd_host&
ptd
180 __crt_cached_ptd_host&
ptd
186 int return_value = -1;
205 FILE*
const public_stream,
210 __crt_cached_ptd_host
ptd;
217 FILE*
const public_stream,
222 __crt_cached_ptd_host
ptd;
229 FILE*
const public_stream,
234 __crt_cached_ptd_host
ptd;
241 FILE*
const public_stream,
246 __crt_cached_ptd_host
ptd;
_Check_return_opt_ __int64 __cdecl _lseeki64_nolock_internal(_In_ int _FileHandle, _In_ __int64 _Offset, _In_ int _Origin, _Inout_ __crt_cached_ptd_host &_Ptd)
_Check_return_opt_ __int64 __cdecl _lseeki64_nolock(_In_ int _FileHandle, _In_ __int64 _Offset, _In_ int _Origin)
#define _UCRT_VALIDATE_RETURN(ptd, expr, errorcode, retexpr)
void __cdecl __acrt_stdio_reset_buffer(__crt_stdio_stream const stream)
_Check_return_ __int64 __cdecl _ftelli64_nolock_internal(_Inout_ FILE *_Stream, _Inout_ __crt_cached_ptd_host &_Ptd)
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
int __cdecl __acrt_stdio_flush_nolock(FILE *const public_stream, __crt_cached_ptd_host &ptd)
static int __cdecl common_fseek_nolock(__crt_stdio_stream const stream, __int64 offset, int whence, __crt_cached_ptd_host &ptd)
static bool __cdecl common_fseek_binary_mode_read_only_fast_track_nolock(__crt_stdio_stream const stream, __int64 offset, int whence)
static int __cdecl common_fseek(__crt_stdio_stream const stream, __int64 const offset, int const whence, __crt_cached_ptd_host &ptd)
int __cdecl _fseeki64(FILE *const public_stream, __int64 const offset, int const whence)
int __cdecl _fseeki64_nolock(FILE *const public_stream, __int64 const offset, int const whence)
int __cdecl _fseek_nolock(FILE *const public_stream, long const offset, int const whence)
int __cdecl fseek(FILE *const public_stream, long const offset, int const whence)
_CRTIMP void __cdecl _unlock_file(_Inout_ FILE *_File)
_CRTIMP void __cdecl _lock_file(_Inout_ FILE *_File)
Windows helper functions for integer overflow prevention.