MCPcopy Create free account
hub / github.com/apache/qpid-proton / pn_fixed_string_append

Function pn_fixed_string_append

c/src/core/fixed_string.h:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53#define STR_CONST(x) pn_string_const(#x, sizeof(#x)-1)
54
55static inline void pn_fixed_string_append(pn_fixed_string_t *str, const pn_string_const_t chars) {
56 uint32_t copy_size = pn_min(chars.size, str->size-str->position);
57 if (copy_size==0) return;
58
59 memcpy(&str->bytes[str->position], chars.bytes, copy_size);
60 str->position += copy_size;
61}
62
63static inline void pn_fixed_string_vaddf(pn_fixed_string_t *str, const char *format, va_list ap){
64 uint32_t bytes_left = str->size-str->position;

Callers 3

pni_logger_log_rawFunction · 0.85
pni_logger_log_msg_frameFunction · 0.85
pni_logger_vlogfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected