Flutter Engine
The Flutter Engine
|
#include "include/core/SkString.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkTFitsIn.h"
#include "include/private/base/SkTemplates.h"
#include "src/core/SkOSFile.h"
#include <dirent.h>
#include <new>
#include <stdio.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
Go to the source code of this file.
Classes | |
struct | SkFILEID |
struct | SkOSFileIterData |
Functions | |
void | sk_fsync (FILE *f) |
bool | sk_exists (const char *path, SkFILE_Flags flags) |
static bool | sk_ino (FILE *a, SkFILEID *id) |
bool | sk_fidentical (FILE *a, FILE *b) |
void | sk_fmunmap (const void *addr, size_t length) |
void * | sk_fdmmap (int fd, size_t *size) |
int | sk_fileno (FILE *f) |
void * | sk_fmmap (FILE *f, size_t *size) |
size_t | sk_qread (FILE *file, void *buffer, size_t count, size_t offset) |
static bool | issuffixfor (const SkString &suffix, const char str[]) |
|
static |
Definition at line 178 of file SkOSFile_posix.cpp.
bool sk_exists | ( | const char * | path, |
SkFILE_Flags | flags = (SkFILE_Flags) 0 |
||
) |
Returns true if something (file, directory, ???) exists at this path, and has the specified access flags.
Definition at line 34 of file SkOSFile_posix.cpp.
void * sk_fdmmap | ( | int | fd, |
size_t * | length | ||
) |
Maps a file descriptor into memory. Returns the address and length on success, NULL otherwise. The mapping is read only. When finished with the mapping, free the returned pointer with sk_fmunmap.
Definition at line 84 of file SkOSFile_posix.cpp.
bool sk_fidentical | ( | FILE * | a, |
FILE * | b | ||
) |
Returns true if the two point at the exact same filesystem object.
Definition at line 73 of file SkOSFile_posix.cpp.
int sk_fileno | ( | FILE * | f | ) |
Returns the underlying file descriptor for the given file. The return value will be < 0 on failure.
Definition at line 106 of file SkOSFile_posix.cpp.
void * sk_fmmap | ( | FILE * | f, |
size_t * | length | ||
) |
Maps a file into memory. Returns the address and length on success, NULL otherwise. The mapping is read only. When finished with the mapping, free the returned pointer with sk_fmunmap.
Definition at line 110 of file SkOSFile_posix.cpp.
void sk_fmunmap | ( | const void * | addr, |
size_t | length | ||
) |
Unmaps a file previously mapped by sk_fmmap or sk_fdmmap. The length parameter must be the same as returned from sk_fmmap.
Definition at line 80 of file SkOSFile_posix.cpp.
void sk_fsync | ( | FILE * | f | ) |
Definition at line 27 of file SkOSFile_posix.cpp.
|
static |
Definition at line 59 of file SkOSFile_posix.cpp.
size_t sk_qread | ( | FILE * | file, |
void * | buffer, | ||
size_t | count, | ||
size_t | offset | ||
) |
Definition at line 119 of file SkOSFile_posix.cpp.