OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:MappedFile
(Results
1 - 25
of
47
) sorted by null
1
2
/external/openfst/src/include/fst/
mapped-file.h
44
class
MappedFile
{
46
virtual ~
MappedFile
();
56
// Returns a
MappedFile
object that contains the contents of the input
59
// or else mapping will fail. If mapping is not possible, then a
MappedFile
61
static
MappedFile
* Map(istream* s, const FstReadOptions& opts, size_t size);
63
// Creates a
MappedFile
object with a new[]'ed block of memory of size.
65
static
MappedFile
* Allocate(size_t size);
67
// Creates a
MappedFile
object pointing to a borrowed reference to data.
68
// This block of memory is not owned by the
MappedFile
object and will not
71
static
MappedFile
* Borrow(void *data)
[
all
...]
/external/chromium_org/net/disk_cache/
mapped_file.h
24
class NET_EXPORT_PRIVATE
MappedFile
: public File {
26
MappedFile
() : File(true), init_(false) {}
45
virtual ~
MappedFile
();
57
DISALLOW_COPY_AND_ASSIGN(
MappedFile
);
63
explicit ScopedFlush(
MappedFile
* file) : file_(file) {}
68
MappedFile
* file_;
storage_block.h
33
StorageBlock(
MappedFile
* file, Addr address);
42
bool LazyInit(
MappedFile
* file, Addr address);
84
MappedFile
* file_;
block_files.h
32
explicit BlockHeader(
MappedFile
* file);
84
MappedFile
* GetFile(Addr address);
113
bool GrowBlockFile(
MappedFile
* file, BlockFileHeader* header);
116
MappedFile
* FileForNewBlock(FileType block_type, int block_count);
119
MappedFile
* NextFile(
MappedFile
* file);
128
bool FixBlockFileHeader(
MappedFile
* file);
139
std::vector<
MappedFile
*> block_files_; // The actual files.
mapped_file.cc
14
void*
MappedFile
::Init(const base::FilePath& name, size_t size) {
39
MappedFile
::~
MappedFile
() {
52
bool
MappedFile
::Load(const FileBlock* block) {
57
bool
MappedFile
::Store(const FileBlock* block) {
62
void
MappedFile
::Flush() {
mapped_file_posix.cc
16
void*
MappedFile
::Init(const base::FilePath& name, size_t size) {
41
bool
MappedFile
::Load(const FileBlock* block) {
46
bool
MappedFile
::Store(const FileBlock* block) {
51
void
MappedFile
::Flush() {
54
MappedFile
::~
MappedFile
() {
mapped_file_win.cc
14
void*
MappedFile
::Init(const base::FilePath& name, size_t size) {
39
MappedFile
::~
MappedFile
() {
52
bool
MappedFile
::Load(const FileBlock* block) {
57
bool
MappedFile
::Store(const FileBlock* block) {
62
void
MappedFile
::Flush() {
mapped_file_avoid_mmap_posix.cc
14
void*
MappedFile
::Init(const base::FilePath& name, size_t size) {
37
bool
MappedFile
::Load(const FileBlock* block) {
42
bool
MappedFile
::Store(const FileBlock* block) {
47
void
MappedFile
::Flush() {
62
MappedFile
::~
MappedFile
() {
storage_block_unittest.cc
17
scoped_refptr<disk_cache::
MappedFile
> file(new disk_cache::
MappedFile
);
37
scoped_refptr<disk_cache::
MappedFile
> file(new disk_cache::
MappedFile
);
57
scoped_refptr<disk_cache::
MappedFile
> file(new disk_cache::
MappedFile
);
mapped_file_unittest.cc
46
scoped_refptr<disk_cache::
MappedFile
> file(new disk_cache::
MappedFile
);
61
scoped_refptr<disk_cache::
MappedFile
> file(new disk_cache::
MappedFile
);
/external/chromium/net/disk_cache/
mapped_file.h
23
class
MappedFile
: public File {
25
MappedFile
() : File(true), init_(false) {}
41
virtual ~
MappedFile
();
50
DISALLOW_COPY_AND_ASSIGN(
MappedFile
);
block_files.h
36
MappedFile
* GetFile(Addr address);
65
bool GrowBlockFile(
MappedFile
* file, BlockFileHeader* header);
68
MappedFile
* FileForNewBlock(FileType block_type, int block_count);
71
MappedFile
* NextFile(const
MappedFile
* file);
80
bool FixBlockFileHeader(
MappedFile
* file);
91
std::vector<
MappedFile
*> block_files_; // The actual files.
storage_block.h
34
StorageBlock(
MappedFile
* file, Addr address);
43
bool LazyInit(
MappedFile
* file, Addr address);
78
MappedFile
* file_;
mapped_file_posix.cc
16
void*
MappedFile
::Init(const FilePath& name, size_t size) {
35
bool
MappedFile
::Load(const FileBlock* block) {
40
bool
MappedFile
::Store(const FileBlock* block) {
45
MappedFile
::~
MappedFile
() {
mapped_file_win.cc
13
void*
MappedFile
::Init(const FilePath& name, size_t size) {
32
MappedFile
::~
MappedFile
() {
45
bool
MappedFile
::Load(const FileBlock* block) {
50
bool
MappedFile
::Store(const FileBlock* block) {
storage_block_unittest.cc
14
scoped_refptr<disk_cache::
MappedFile
> file(new disk_cache::
MappedFile
);
34
scoped_refptr<disk_cache::
MappedFile
> file(new disk_cache::
MappedFile
);
54
scoped_refptr<disk_cache::
MappedFile
> file(new disk_cache::
MappedFile
);
mapped_file_unittest.cc
43
scoped_refptr<disk_cache::
MappedFile
> file(new disk_cache::
MappedFile
);
58
scoped_refptr<disk_cache::
MappedFile
> file(new disk_cache::
MappedFile
);
/external/chromium_org/net/disk_cache/v3/
block_bitmaps.h
54
MappedFile
* GetFile(Addr address);
57
bool GrowBlockFile(
MappedFile
* file, BlockFileHeader* header);
60
MappedFile
* FileForNewBlock(FileType block_type, int block_count);
63
bool FixBlockFileHeader(
MappedFile
* file);
block_bitmaps.cc
66
MappedFile
* file = FileForNewBlock(block_type, block_count);
101
MappedFile
* file = GetFile(address);
165
MappedFile
* file = GetFile(address);
188
MappedFile
* BlockFiles::GetFile(Addr address) {
206
bool BlockFiles::GrowBlockFile(
MappedFile
* file, BlockFileHeader* header) {
236
MappedFile
* BlockFiles::FileForNewBlock(FileType block_type, int block_count) {
238
MappedFile
* file = block_files_[block_type - 1];
261
bool BlockFiles::FixBlockFileHeader(
MappedFile
* file) {
/external/openfst/src/lib/
mapped-file.cc
28
const int
MappedFile
::kArchAlignment = 16;
30
MappedFile
::
MappedFile
(const MemoryRegion ®ion) : region_(region) { }
32
MappedFile
::~
MappedFile
() {
45
MappedFile
*
MappedFile
::Allocate(size_t size) {
50
return new
MappedFile
(region);
53
MappedFile
*
MappedFile
::Borrow(void *data)
[
all
...]
util.cc
65
for (int i = 0; i <
MappedFile
::kArchAlignment; ++i) {
71
if (pos %
MappedFile
::kArchAlignment == 0) break;
80
for (int i = 0; i <
MappedFile
::kArchAlignment; ++i) {
86
if (pos %
MappedFile
::kArchAlignment == 0) break;
/art/runtime/base/unix_file/
mapped_file.h
31
class
MappedFile
: public FdFile {
39
MappedFile
() : FdFile(), file_size_(-1), mapped_file_(NULL) {
41
// Creates a
MappedFile
using the given file descriptor. Takes ownership of
43
explicit
MappedFile
(int fd) : FdFile(fd), file_size_(-1), mapped_file_(NULL) {
47
virtual ~
MappedFile
();
92
DISALLOW_COPY_AND_ASSIGN(
MappedFile
);
mapped_file_test.cc
47
MappedFile
* f = new
MappedFile
;
48
CHECK(f->Open(good_path_,
MappedFile
::kReadWriteMode));
57
MappedFile
file;
64
MappedFile
file;
65
ASSERT_TRUE(file.Open(good_path_,
MappedFile
::kReadOnlyMode));
77
MappedFile
file(fileno(f));
84
MappedFile
file;
85
ASSERT_TRUE(file.Open(good_path_,
MappedFile
::kReadOnlyMode));
96
MappedFile
file
[
all
...]
mapped_file.cc
29
MappedFile
::~
MappedFile
() {
32
int
MappedFile
::Close() {
39
bool
MappedFile
::MapReadOnly() {
61
bool
MappedFile
::MapReadWrite(int64_t file_size) {
84
bool
MappedFile
::Unmap() {
98
int64_t
MappedFile
::Read(char* buf, int64_t byte_count, int64_t offset) const {
114
int
MappedFile
::SetLength(int64_t new_length) {
119
int64_t
MappedFile
::GetLength() const {
127
int
MappedFile
::Flush()
[
all
...]
/external/llvm/lib/Support/
FileOutputBuffer.cpp
78
OwningPtr<mapped_file_region>
MappedFile
(new mapped_file_region(
83
Result.reset(new FileOutputBuffer(
MappedFile
.get(), FilePath, TempFilePath));
85
MappedFile
.take();
Completed in 778 milliseconds
1
2