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
Collaboration diagram for lldb_private::EventDataBytes:
Collaboration graph

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 ()
virtual ConstString GetFlavor () const =0
virtual LogGetLogChannel ()
virtual void Dump (Stream *s) const

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 58 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 ( )

◆ EventDataBytes() [5/5]

lldb_private::EventDataBytes::EventDataBytes ( const EventDataBytes )

Member Function Documentation

◆ Dump()

void EventDataBytes::Dump ( Stream s) const

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)

◆ GetByteSize()

size_t EventDataBytes::GetByteSize ( ) const

◆ GetByteSizeFromEvent()

size_t EventDataBytes::GetByteSizeFromEvent ( const Event event_ptr)

Definition at line 163 of file Event.cpp.

References GetByteSize(), and GetEventDataFromEvent().

◆ GetEventDataFromEvent()

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

◆ GetFlavor()

ConstString EventDataBytes::GetFlavor ( ) const

Implements lldb_private::EventData.

Definition at line 122 of file Event.cpp.

References GetFlavorString().

◆ GetFlavorString()

ConstString EventDataBytes::GetFlavorString ( )

Definition at line 117 of file Event.cpp.

Referenced by GetEventDataFromEvent(), and GetFlavor().

◆ operator=()

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

◆ SetBytes()

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

Definition at line 142 of file Event.cpp.

References m_bytes.

Referenced by EventDataBytes().

◆ SetBytesFromCString()

void EventDataBytes::SetBytesFromCString ( const char *  cstr)

Definition at line 149 of file Event.cpp.

References m_bytes.

Referenced by EventDataBytes().

◆ SwapBytes()

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

Definition at line 181 of file Event.cpp.

References m_bytes.

Member Data Documentation

◆ m_bytes

std::string lldb_private::EventDataBytes::m_bytes

Definition at line 96 of file Event.h.

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

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