LLVM 20.0.0git
Public Member Functions | Friends | List of all members
llvm::MemoryBufferRef Class Reference

#include "llvm/Support/MemoryBufferRef.h"

Public Member Functions

 MemoryBufferRef ()=default
 
 MemoryBufferRef (const MemoryBuffer &Buffer)
 
 MemoryBufferRef (StringRef Buffer, StringRef Identifier)
 
StringRef getBuffer () const
 
StringRef getBufferIdentifier () const
 
const chargetBufferStart () const
 
const chargetBufferEnd () const
 
size_t getBufferSize () const
 

Friends

bool operator== (const MemoryBufferRef &LHS, const MemoryBufferRef &RHS)
 Check pointer identity (not value) of identifier and data.
 
bool operator!= (const MemoryBufferRef &LHS, const MemoryBufferRef &RHS)
 

Detailed Description

Definition at line 22 of file MemoryBufferRef.h.

Constructor & Destructor Documentation

◆ MemoryBufferRef() [1/3]

llvm::MemoryBufferRef::MemoryBufferRef ( )
default

◆ MemoryBufferRef() [2/3]

MemoryBufferRef::MemoryBufferRef ( const MemoryBuffer Buffer)

Definition at line 18 of file MemoryBufferRef.cpp.

◆ MemoryBufferRef() [3/3]

llvm::MemoryBufferRef::MemoryBufferRef ( StringRef  Buffer,
StringRef  Identifier 
)
inline

Definition at line 29 of file MemoryBufferRef.h.

Member Function Documentation

◆ getBuffer()

StringRef llvm::MemoryBufferRef::getBuffer ( ) const
inline

◆ getBufferEnd()

const char * llvm::MemoryBufferRef::getBufferEnd ( ) const
inline

◆ getBufferIdentifier()

StringRef llvm::MemoryBufferRef::getBufferIdentifier ( ) const
inline

◆ getBufferSize()

size_t llvm::MemoryBufferRef::getBufferSize ( ) const
inline

◆ getBufferStart()

const char * llvm::MemoryBufferRef::getBufferStart ( ) const
inline

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const MemoryBufferRef LHS,
const MemoryBufferRef RHS 
)
friend

Definition at line 48 of file MemoryBufferRef.h.

◆ operator==

bool operator== ( const MemoryBufferRef LHS,
const MemoryBufferRef RHS 
)
friend

Check pointer identity (not value) of identifier and data.

Definition at line 40 of file MemoryBufferRef.h.


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