MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xo_buf_append

Function xo_buf_append

tools/libxo/libxo/xo_buf.h:138–146  ·  view source on GitHub ↗

* Append the given string to the given buffer */

Source from the content-addressed store, hash-verified

136 * Append the given string to the given buffer
137 */
138static inline void
139xo_buf_append (xo_buffer_t *xbp, const char *str, ssize_t len)
140{
141 if (str == NULL || len == 0 || !xo_buf_has_room(xbp, len))
142 return;
143
144 memcpy(xbp->xb_curp, str, len);
145 xbp->xb_curp += len;
146}
147
148/*
149 * Append the given NUL-terminated string to the given buffer

Callers 15

cbor_appendFunction · 0.85
csv_escapeFunction · 0.85
csv_append_newlineFunction · 0.85
csv_emit_recordFunction · 0.85
csv_leaf_numFunction · 0.85
csv_leaf_setFunction · 0.85
xo_writeFunction · 0.85
xo_buf_append_localeFunction · 0.85
xo_data_appendFunction · 0.85
xo_warn_hcvFunction · 0.85
xo_message_hcvFunction · 0.85
xo_format_humanizeFunction · 0.85

Calls 2

xo_buf_has_roomFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected