Home | History | Annotate | Download | only in base

Lines Matching refs:PlatformFile

128 typedef HANDLE PlatformFile;
129 const PlatformFile kInvalidPlatformFileValue = INVALID_HANDLE_VALUE;
132 typedef int PlatformFile;
133 const PlatformFile kInvalidPlatformFileValue = -1;
144 BASE_EXPORT PlatformFile CreatePlatformFile(const FilePath& name,
151 BASE_EXPORT PlatformFile CreatePlatformFileUnsafe(const FilePath& name,
156 BASE_EXPORT FILE* FdopenPlatformFile(PlatformFile file, const char* mode);
159 BASE_EXPORT bool ClosePlatformFile(PlatformFile file);
164 BASE_EXPORT int64 SeekPlatformFile(PlatformFile file,
173 BASE_EXPORT int ReadPlatformFile(PlatformFile file, int64 offset,
177 BASE_EXPORT int ReadPlatformFileAtCurrentPos(PlatformFile file,
183 BASE_EXPORT int ReadPlatformFileNoBestEffort(PlatformFile file, int64 offset,
187 BASE_EXPORT int ReadPlatformFileCurPosNoBestEffort(PlatformFile file,
196 BASE_EXPORT int WritePlatformFile(PlatformFile file, int64 offset,
200 BASE_EXPORT int WritePlatformFileAtCurrentPos(PlatformFile file,
205 BASE_EXPORT int WritePlatformFileCurPosNoBestEffort(PlatformFile file,
211 BASE_EXPORT bool TruncatePlatformFile(PlatformFile file, int64 length);
214 BASE_EXPORT bool FlushPlatformFile(PlatformFile file);
217 BASE_EXPORT bool TouchPlatformFile(PlatformFile file,
222 BASE_EXPORT bool GetPlatformFileInfo(PlatformFile file, PlatformFileInfo* info);
244 BASE_EXPORT PlatformFileError LockPlatformFile(PlatformFile file);
247 BASE_EXPORT PlatformFileError UnlockPlatformFile(PlatformFile file);
249 // Use this class to pass ownership of a PlatformFile to a receiver that may or
251 // PlatformFile.
257 // PlatformFile file = pass_file.ReleaseValue();
263 // PlatformFile file = CreatePlatformFile(path, ...);
271 explicit PassPlatformFile(PlatformFile* value) : value_(value) {
274 // Called to retrieve the PlatformFile stored in this object. The caller
275 // gains ownership of the PlatformFile and is now responsible for closing it.
276 // Any subsequent calls to this method will return an invalid PlatformFile.
277 PlatformFile ReleaseValue() {
278 PlatformFile temp = *value_;
284 PlatformFile* value_;