38 #include "pplx/pplxtasks.h"
39 #include "cpprest/details/basic_types.h"
52 _ASYNCRTIMP
_file_info(std::ios_base::openmode mode,
size_t buffer_size) :
56 m_buffer_size(buffer_size),
80 std::ios_base::openmode m_mode;
93 virtual void on_closed() { }
94 virtual void on_error(
const std::exception_ptr &) { }
95 virtual void on_completed(
size_t) { }
116 #if !defined(__cplusplus_winrt)
117 _ASYNCRTIMP
bool __cdecl _open_fsb_str(_In_ concurrency::streams::details::_filestream_callback *callback,
const utility::char_t *filename, std::ios_base::openmode mode,
int prot);
131 #if defined(__cplusplus_winrt)
132 _ASYNCRTIMP
bool __cdecl _open_fsb_stf_str(_In_ concurrency::streams::details::_filestream_callback *callback, ::Windows::Storage::StorageFile^ file, std::ios_base::openmode mode,
int prot);
144 _ASYNCRTIMP
bool __cdecl _close_fsb_nolock(_In_ concurrency::streams::details::_file_info **info, _In_ concurrency::streams::details::_filestream_callback *callback);
145 _ASYNCRTIMP
bool __cdecl _close_fsb(_In_ concurrency::streams::details::_file_info **info, _In_ concurrency::streams::details::_filestream_callback *callback);
156 _ASYNCRTIMP
size_t __cdecl _putn_fsb(_In_ concurrency::streams::details::_file_info *info, _In_ concurrency::streams::details::_filestream_callback *callback,
const void *ptr,
size_t count,
size_t char_size);
166 _ASYNCRTIMP
size_t __cdecl _getn_fsb(_In_ concurrency::streams::details::_file_info *info, _In_ concurrency::streams::details::_filestream_callback *callback, _Out_writes_ (count)
void *ptr, _In_
size_t count,
size_t char_size);
174 _ASYNCRTIMP
bool __cdecl _sync_fsb(_In_ concurrency::streams::details::_file_info *info, _In_ concurrency::streams::details::_filestream_callback *callback);
181 _ASYNCRTIMP utility::size64_t __cdecl _get_size(_In_ concurrency::streams::details::_file_info *info,
size_t char_size);
189 _ASYNCRTIMP
size_t __cdecl _seekrdpos_fsb(_In_ concurrency::streams::details::_file_info *info,
size_t pos,
size_t char_size);
197 _ASYNCRTIMP
size_t __cdecl _seekrdtoend_fsb(_In_ concurrency::streams::details::_file_info *info, int64_t offset,
size_t char_size);
205 _ASYNCRTIMP
size_t __cdecl _seekwrpos_fsb(_In_ concurrency::streams::details::_file_info *info,
size_t pos,
size_t char_size);
Recursive mutex
Definition: pplxlinux.h:196
This interface provides the necessary callbacks for completion events.
Definition: fileio.h:89
Definition: astreambuf.h:37
A record containing the essential private data members of a file stream, in particular the parts that...
Definition: fileio.h:50