2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FIo_MemoryMappedFileImpl.h
19 * @brief This is the header file for the %_MemoryMappedFileImpl class.
21 * This header file contains the declarations of the %_MemoryMappedFileImpl class.
24 #ifndef _FIO_INTERNAL_MEMORY_MAPPED_FILE_IMPL_H_
25 #define _FIO_INTERNAL_MEMORY_MAPPED_FILE_IMPL_H_
27 #include <FBaseObject.h>
29 namespace Tizen { namespace Io
32 class _MemoryMappedFileImpl
33 : public Tizen::Base::Object
37 _MemoryMappedFileImpl(void);
39 ~_MemoryMappedFileImpl(void);
41 result Construct(const File& file);
43 void* Map(void* address, long long length, unsigned long protection, unsigned long flag, long long offset);
45 result Unmap(void* address, long long length);
47 result Sync(void* address, long long length, MemoryMappedFileSyncFlag syncFlag);
51 * This is the default copy constructor for this class.
55 _MemoryMappedFileImpl(const _MemoryMappedFileImpl& rhs);
58 * This is the assignment operator for this class.
62 _MemoryMappedFileImpl& operator =(const _MemoryMappedFileImpl& rhs);
66 }; // _MemoryMappedFileImpl
70 #endif // _FIO_INTERNAL_MEMORY_MAPPED_FILE_IMPL_H_