5 #ifndef PPAPI_CPP_FILE_IO_H_
6 #define PPAPI_CPP_FILE_IO_H_
8 #include "ppapi/c/pp_time.h"
9 #include "ppapi/cpp/completion_callback.h"
10 #include "ppapi/cpp/resource.h"
80 int32_t
Query(PP_FileInfo* result_buf,
93 int32_t
Touch(PP_Time last_access_time,
94 PP_Time last_modified_time,
151 int32_t
Read(int64_t offset,
153 int32_t bytes_to_read,
174 int32_t
Read(int32_t offset,
175 int32_t max_read_length,
192 int32_t
Write(int64_t offset,
194 int32_t bytes_to_write,
230 struct CallbackData1_0 {
231 PP_ArrayOutput output;
233 PP_CompletionCallback original_callback;
242 static void CallbackConverter(
void* user_data, int32_t result);
247 #endif // PPAPI_CPP_FILE_IO_H_
The FileIO class represents a regular file.
int32_t Query(PP_FileInfo *result_buf, const CompletionCallback &cc)
int32_t Touch(PP_Time last_access_time, PP_Time last_modified_time, const CompletionCallback &cc)
int32_t Flush(const CompletionCallback &cc)
int32_t Write(int64_t offset, const char *buffer, int32_t bytes_to_write, const CompletionCallback &cc)
int32_t Read(int64_t offset, char *buffer, int32_t bytes_to_read, const CompletionCallback &cc)
int32_t SetLength(int64_t length, const CompletionCallback &cc)
int32_t Open(const FileRef &file_ref, int32_t open_flags, const CompletionCallback &cc)
A reference counted module resource.