GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
data_buf Class Reference

Public Member Functions

void append_array (gdb::array_view< const gdb_byte > array)
 
void append_cstr0 (const char *cstr)
 
void append_unsigned_leb128 (ULONGEST input)
 
void append_uint (size_t len, bfd_endian byte_order, ULONGEST val)
 
void append_offset (offset_type value)
 
virtual size_t size () const
 
bool empty () const
 
void file_write (FILE *file) const
 

Private Member Functions

gdb_byte * grow (size_t size)
 

Private Attributes

gdb::byte_vector m_vec
 

Detailed Description

Definition at line 94 of file index-write.c.

Member Function Documentation

◆ append_array()

void data_buf::append_array ( gdb::array_view< const gdb_byte > array)
inline

Definition at line 98 of file index-write.c.

References grow().

Referenced by write_debug_names().

◆ append_cstr0()

void data_buf::append_cstr0 ( const char * cstr)
inline

Definition at line 105 of file index-write.c.

References grow(), and size().

Referenced by debug_names::debug_str_lookup::lookup(), and write_hash_table().

◆ append_offset()

void data_buf::append_offset ( offset_type value)
inline

Definition at line 134 of file index-write.c.

References append_uint().

Referenced by add_address_entry(), write_gdbindex_1(), and write_hash_table().

◆ append_uint()

void data_buf::append_uint ( size_t len,
bfd_endian byte_order,
ULONGEST val )
inline

◆ append_unsigned_leb128()

void data_buf::append_unsigned_leb128 ( ULONGEST input)
inline

Definition at line 112 of file index-write.c.

References m_vec.

Referenced by debug_names::build().

◆ empty()

bool data_buf::empty ( ) const
inline

◆ file_write()

void data_buf::file_write ( FILE * file) const
inline

◆ grow()

gdb_byte * data_buf::grow ( size_t size)
inlineprivate

Definition at line 160 of file index-write.c.

References m_vec, and size().

Referenced by append_array(), append_cstr0(), and append_uint().

◆ size()

virtual size_t data_buf::size ( ) const
inlinevirtual

Member Data Documentation

◆ m_vec

gdb::byte_vector data_buf::m_vec
private

Definition at line 166 of file index-write.c.

Referenced by append_unsigned_leb128(), empty(), file_write(), grow(), and size().


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