Home
last modified time | relevance | path

Searched refs:pMemBuffer (Results 1 – 10 of 10) sorted by relevance

/frameworks/compile/mclinker/include/mcld/Support/
DFileHandle.h85 bool read(void* pMemBuffer, size_t pStartOffset, size_t pLength);
87 bool write(const void* pMemBuffer, size_t pStartOffset, size_t pLength);
89 bool mmap(void*& pMemBuffer, size_t pStartOffset, size_t pLength);
91 bool munmap(void* pMemBuffer, size_t pLength);
DMemoryArea.h32 explicit MemoryArea(const char* pMemBuffer, size_t pSize);
DMemoryAreaFactory.h54 MemoryArea* produce(void* pMemBuffer, size_t pSize);
/frameworks/compile/mclinker/lib/Support/
DFileHandle.cpp159 bool FileHandle::read(void* pMemBuffer, size_t pStartOffset, size_t pLength) { in read() argument
169 sys::fs::detail::pread(m_Handler, pMemBuffer, pLength, pStartOffset); in read()
179 bool FileHandle::write(const void* pMemBuffer, in write() argument
191 sys::fs::detail::pwrite(m_Handler, pMemBuffer, pLength, pStartOffset); in write()
DMemoryArea.cpp33 MemoryArea::MemoryArea(const char* pMemBuffer, size_t pSize) { in MemoryArea() argument
34 llvm::StringRef mem(pMemBuffer, pSize); in MemoryArea()
DMemoryAreaFactory.cpp52 MemoryArea* MemoryAreaFactory::produce(void* pMemBuffer, size_t pSize) { in produce() argument
53 const char* base = reinterpret_cast<const char*>(pMemBuffer); in produce()
/frameworks/compile/mclinker/lib/Support/Windows/
DFileSystem.inc150 bool FileHandle::mmap(void*& pMemBuffer, size_t pStartOffset, size_t pLength) {
152 pMemBuffer = (void*)::malloc(pLength);
153 return read(pMemBuffer, pStartOffset, pLength);
156 bool FileHandle::munmap(void* pMemBuffer, size_t pLength) {
158 free(pMemBuffer);
/frameworks/compile/mclinker/lib/Support/Unix/
DFileSystem.inc154 bool FileHandle::mmap(void*& pMemBuffer, size_t pStartOffset, size_t pLength) {
182 pMemBuffer = ::mmap(NULL, pLength, prot, flag, m_Handler, pStartOffset);
184 if (MAP_FAILED == pMemBuffer) {
192 bool FileHandle::munmap(void* pMemBuffer, size_t pLength) {
198 if (-1 == ::munmap(pMemBuffer, pLength)) {
/frameworks/compile/mclinker/lib/MC/
DInputBuilder.cpp129 bool InputBuilder::setMemory(Input& pInput, void* pMemBuffer, size_t pSize) { in setMemory() argument
130 MemoryArea* memory = m_pMemFactory->produce(pMemBuffer, pSize); in setMemory()
/frameworks/compile/mclinker/include/mcld/MC/
DInputBuilder.h71 bool setMemory(Input& pInput, void* pMemBuffer, size_t pSize);