LLVM 19.0.0git
Public Member Functions | List of all members
llvm::sys::OwningMemoryBlock Class Reference

Owning version of MemoryBlock. More...

#include "llvm/Support/Memory.h"

Public Member Functions

 OwningMemoryBlock ()=default
 
 OwningMemoryBlock (MemoryBlock M)
 
 OwningMemoryBlock (OwningMemoryBlock &&Other)
 
OwningMemoryBlockoperator= (OwningMemoryBlock &&Other)
 
 ~OwningMemoryBlock ()
 
void * base () const
 
size_t allocatedSize () const
 The size as it was allocated.
 
MemoryBlock getMemoryBlock () const
 
std::error_code release ()
 

Detailed Description

Owning version of MemoryBlock.

Definition at line 137 of file Memory.h.

Constructor & Destructor Documentation

◆ OwningMemoryBlock() [1/3]

llvm::sys::OwningMemoryBlock::OwningMemoryBlock ( )
default

◆ OwningMemoryBlock() [2/3]

llvm::sys::OwningMemoryBlock::OwningMemoryBlock ( MemoryBlock  M)
inlineexplicit

Definition at line 140 of file Memory.h.

◆ OwningMemoryBlock() [3/3]

llvm::sys::OwningMemoryBlock::OwningMemoryBlock ( OwningMemoryBlock &&  Other)
inline

Definition at line 141 of file Memory.h.

References llvm::Other.

◆ ~OwningMemoryBlock()

llvm::sys::OwningMemoryBlock::~OwningMemoryBlock ( )
inline

Member Function Documentation

◆ allocatedSize()

size_t llvm::sys::OwningMemoryBlock::allocatedSize ( ) const
inline

The size as it was allocated.

This is always greater or equal to the size that was originally requested.

Definition at line 157 of file Memory.h.

References llvm::sys::MemoryBlock::allocatedSize().

◆ base()

void * llvm::sys::OwningMemoryBlock::base ( ) const
inline

◆ getMemoryBlock()

MemoryBlock llvm::sys::OwningMemoryBlock::getMemoryBlock ( ) const
inline

Definition at line 158 of file Memory.h.

◆ operator=()

OwningMemoryBlock & llvm::sys::OwningMemoryBlock::operator= ( OwningMemoryBlock &&  Other)
inline

Definition at line 145 of file Memory.h.

References llvm::Other.

◆ release()

std::error_code llvm::sys::OwningMemoryBlock::release ( )
inline

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