#include <stddef.h>

Go to the source code of this file.
Data Structures | |
| struct | growable_buffer |
Functions | |
| void | init_buffer (struct growable_buffer *buffer) |
| void | free_buffer (struct growable_buffer *buffer) |
| void | add_data (struct growable_buffer *b, void const *data, size_t len) |
a growable buffer interface
Definition in file op_growable_buffer.h.
| void add_data | ( | struct growable_buffer * | b, | |
| void const * | data, | |||
| size_t | len | |||
| ) |
add_data - add data to this buffer
| b | the buffer where to add data | |
| data | a pointer to the data to add | |
| len | number of byte to add to the buffer |
Definition at line 39 of file op_growable_buffer.c.
References grow_buffer(), growable_buffer::max_size, growable_buffer::p, and growable_buffer::size.
Referenced by add_compilation_unit(), add_debug_line(), emit_extended_opcode(), emit_lne_define_filename(), emit_opcode(), emit_opcode_signed(), emit_opcode_unsigned(), emit_signed_LEB128(), emit_string(), emit_unsigned_LEB128(), and emit_uword().


| void free_buffer | ( | struct growable_buffer * | buffer | ) |
free_buffer - free the memory allocated for this buffer
| buffer | the buffer to free |
Definition at line 25 of file op_growable_buffer.c.
References growable_buffer::p.
Referenced by finalize_debug_line_info().

| void init_buffer | ( | struct growable_buffer * | buffer | ) |
init_buffer - initialize an empty buffer
| buffer | the buffer to initialize |
init_buffer do not do any allocation, the first allocation will occur when add_data() with a non zero len param will be called.
Definition at line 17 of file op_growable_buffer.c.
References growable_buffer::max_size, growable_buffer::p, and growable_buffer::size.
Referenced by init_debug_line_info().

1.6.1