OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mmap_handle
(Results
1 - 5
of
5
) sorted by null
/external/libtextclassifier/common/
mmap.cc
119
bool Unmap(MmapHandle
mmap_handle
) {
120
if (!
mmap_handle
.ok()) {
124
if (munmap(
mmap_handle
.start(),
mmap_handle
.num_bytes()) != 0) {
mmap.h
75
// MmapHandle
mmap_handle
= MmapFile(filename);
76
// TC_DCHECK(
mmap_handle
.ok()) << "Unable to mmap " << filename;
79
// ... [
mmap_handle
.start,
mmap_handle
.start +
mmap_handle
.num_bytes)
81
// Unmap(
mmap_handle
); // Unmap logs errors internally.
93
bool Unmap(MmapHandle
mmap_handle
);
/external/libtextclassifier/lang_id/
lang-id.cc
89
MmapHandle
mmap_handle
= scoped_mmap.handle();
local
90
if (!
mmap_handle
.ok()) {
95
Initialize(
mmap_handle
.to_stringpiece());
101
MmapHandle
mmap_handle
= scoped_mmap.handle();
local
102
if (!
mmap_handle
.ok()) {
107
Initialize(
mmap_handle
.to_stringpiece());
/external/libtextclassifier/smartselect/
text-classification-model.h
93
bool LoadModels(const nlp_core::MmapHandle&
mmap_handle
);
text-classification-model.cc
154
void ParseMergedModel(const MmapHandle&
mmap_handle
,
158
const char* model_data = reinterpret_cast<const char*>(
mmap_handle
.start());
173
bool TextClassificationModel::LoadModels(const MmapHandle&
mmap_handle
) {
174
if (!
mmap_handle
.ok()) {
180
ParseMergedModel(
mmap_handle
, &selection_model, &selection_model_length,
Completed in 82 milliseconds