16template <
typename Integer>
34 _ASSERTE((
"Invalid file descriptor. File possibly closed by a different thread", 0));
39 Integer
const here = traits::lseek_nolock(fh, 0,
SEEK_CUR);
45 traits::lseek_nolock(fh, here,
SEEK_SET);
57 return common_filelength<long>(fh);
62 return common_filelength<__int64>(fh);
#define _CHECK_FH_CLEAR_OSSERR_RETURN(handle, errorcode, retexpr)
void __cdecl __acrt_lowio_lock_fh(_In_ int _FileHandle)
void __cdecl __acrt_lowio_unlock_fh(_In_ int _FileHandle)
result_buffer_count char *const _In_ int const _In_ bool const _In_ unsigned const _In_ STRFLT const _In_ bool const _Inout_ __crt_cached_ptd_host &ptd throw()
long __cdecl _filelength(int const fh)
__int64 __cdecl _filelengthi64(int const fh)
#define _VALIDATE_CLEAR_OSSERR_RETURN(expr, errorcode, retexpr)