LLDB  mainline
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
lldb_private::EventDataBytes Class Reference

#include <Event.h>

Inheritance diagram for lldb_private::EventDataBytes:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::EventDataBytes:
Collaboration graph
[legend]

Public Member Functions

 EventDataBytes ()
 
 EventDataBytes (const char *cstr)
 
 EventDataBytes (llvm::StringRef str)
 
 EventDataBytes (const void *src, size_t src_len)
 
 ~EventDataBytes () override
 
ConstString GetFlavor () const override
 
void Dump (Stream *s) const override
 
const void * GetBytes () const
 
size_t GetByteSize () const
 
void SetBytes (const void *src, size_t src_len)
 
void SwapBytes (std::string &new_bytes)
 
void SetBytesFromCString (const char *cstr)
 
- Public Member Functions inherited from lldb_private::EventData
 EventData ()
 
virtual ~EventData ()
 

Static Public Member Functions

static const EventDataBytesGetEventDataFromEvent (const Event *event_ptr)
 
static const void * GetBytesFromEvent (const Event *event_ptr)
 
static size_t GetByteSizeFromEvent (const Event *event_ptr)
 
static ConstString GetFlavorString ()
 

Private Member Functions

 EventDataBytes (const EventDataBytes &)=delete
 
const EventDataBytesoperator= (const EventDataBytes &)=delete
 

Private Attributes

std::string m_bytes
 

Detailed Description

Definition at line 56 of file Event.h.

Constructor & Destructor Documentation

◆ EventDataBytes() [1/5]

EventDataBytes::EventDataBytes ( )

Definition at line 101 of file Event.cpp.

◆ EventDataBytes() [2/5]

EventDataBytes::EventDataBytes ( const char *  cstr)

Definition at line 103 of file Event.cpp.

References SetBytesFromCString().

◆ EventDataBytes() [3/5]

EventDataBytes::EventDataBytes ( llvm::StringRef  str)

Definition at line 107 of file Event.cpp.

References SetBytes().

◆ EventDataBytes() [4/5]

EventDataBytes::EventDataBytes ( const void *  src,
size_t  src_len 
)

Definition at line 111 of file Event.cpp.

References SetBytes().

◆ ~EventDataBytes()

EventDataBytes::~EventDataBytes ( )
overridedefault

◆ EventDataBytes() [5/5]

lldb_private::EventDataBytes::EventDataBytes ( const EventDataBytes )
privatedelete

Member Function Documentation

◆ Dump()

void EventDataBytes::Dump ( Stream s) const
overridevirtual

Reimplemented from lldb_private::EventData.

Definition at line 126 of file Event.cpp.

References lldb_private::Stream::Format(), and m_bytes.

◆ GetBytes()

const void * EventDataBytes::GetBytes ( ) const

◆ GetBytesFromEvent()

const void * EventDataBytes::GetBytesFromEvent ( const Event event_ptr)
static

◆ GetByteSize()

size_t EventDataBytes::GetByteSize ( ) const

◆ GetByteSizeFromEvent()

size_t EventDataBytes::GetByteSizeFromEvent ( const Event event_ptr)
static

Definition at line 165 of file Event.cpp.

References GetByteSize(), and GetEventDataFromEvent().

◆ GetEventDataFromEvent()

const EventDataBytes * EventDataBytes::GetEventDataFromEvent ( const Event event_ptr)
static

◆ GetFlavor()

ConstString EventDataBytes::GetFlavor ( ) const
overridevirtual

Implements lldb_private::EventData.

Definition at line 122 of file Event.cpp.

References GetFlavorString().

◆ GetFlavorString()

ConstString EventDataBytes::GetFlavorString ( )
static

Definition at line 117 of file Event.cpp.

Referenced by GetEventDataFromEvent(), and GetFlavor().

◆ operator=()

const EventDataBytes& lldb_private::EventDataBytes::operator= ( const EventDataBytes )
privatedelete

◆ SetBytes()

void EventDataBytes::SetBytes ( const void *  src,
size_t  src_len 
)

Definition at line 144 of file Event.cpp.

References m_bytes.

Referenced by EventDataBytes().

◆ SetBytesFromCString()

void EventDataBytes::SetBytesFromCString ( const char *  cstr)

Definition at line 151 of file Event.cpp.

References m_bytes.

Referenced by EventDataBytes().

◆ SwapBytes()

void EventDataBytes::SwapBytes ( std::string new_bytes)

Definition at line 183 of file Event.cpp.

References m_bytes.

Member Data Documentation

◆ m_bytes

std::string lldb_private::EventDataBytes::m_bytes
private

Definition at line 94 of file Event.h.

Referenced by Dump(), GetBytes(), GetByteSize(), SetBytes(), SetBytesFromCString(), and SwapBytes().


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