OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:MmappedBuffer
(Results
1 - 2
of
2
) sorted by null
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
mmapped_buffer.h
28
class
MmappedBuffer
{
30
typedef std::unique_ptr<const
MmappedBuffer
> MmappedBufferPtr;
41
~
MmappedBuffer
();
56
AK_FORCE_INLINE
MmappedBuffer
(uint8_t *const buffer, const int bufferSize,
57
void *const
mmappedBuffer
, const int alignedSize, const int mmapFd,
59
: mByteArrayView(buffer, bufferSize), mMmappedBuffer(
mmappedBuffer
),
63
AK_FORCE_INLINE
MmappedBuffer
(const bool isUpdatable)
67
DISALLOW_IMPLICIT_CONSTRUCTORS(
MmappedBuffer
);
mmapped_buffer.cpp
30
/* static */
MmappedBuffer
::MmappedBufferPtr
MmappedBuffer
::openBuffer(
43
void *const
mmappedBuffer
= mmap(0, alignedSize, protMode, MAP_PRIVATE, mmapFd,
45
if (
mmappedBuffer
== MAP_FAILED) {
50
uint8_t *const buffer = static_cast<uint8_t *>(
mmappedBuffer
) + offset;
56
return MmappedBufferPtr(new
MmappedBuffer
(buffer, bufferSize,
mmappedBuffer
, alignedSize,
60
/* static */
MmappedBuffer
::MmappedBufferPtr
MmappedBuffer
::openBuffer(
66
return MmappedBufferPtr(new
MmappedBuffer
(isUpdatable))
[
all
...]
Completed in 2703 milliseconds