Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::bin::MappedMemory Class Reference

#include <file.h>

Public Member Functions

 MappedMemory (void *address, intptr_t size, bool should_unmap=true)
 
 ~MappedMemory ()
 
void * address () const
 
intptr_t size () const
 
uword start () const
 
void Leak ()
 

Detailed Description

Definition at line 26 of file file.h.

Constructor & Destructor Documentation

◆ MappedMemory()

dart::bin::MappedMemory::MappedMemory ( void *  address,
intptr_t  size,
bool  should_unmap = true 
)
inline

Definition at line 28 of file file.h.

29 : should_unmap_(should_unmap), address_(address), size_(size) {}
void * address() const
Definition: file.h:34
intptr_t size() const
Definition: file.h:35

◆ ~MappedMemory()

dart::bin::MappedMemory::~MappedMemory ( )
inline

Definition at line 30 of file file.h.

30 {
31 if (should_unmap_) Unmap();
32 }

Member Function Documentation

◆ address()

void * dart::bin::MappedMemory::address ( ) const
inline

Definition at line 34 of file file.h.

34{ return address_; }

◆ Leak()

void dart::bin::MappedMemory::Leak ( )
inline

Definition at line 38 of file file.h.

38{ should_unmap_ = false; }

◆ size()

intptr_t dart::bin::MappedMemory::size ( ) const
inline

Definition at line 35 of file file.h.

35{ return size_; }

◆ start()

uword dart::bin::MappedMemory::start ( ) const
inline

Definition at line 36 of file file.h.

36{ return reinterpret_cast<uword>(address()); }
uintptr_t uword
Definition: globals.h:501

The documentation for this class was generated from the following file: